> For the complete documentation index, see [llms.txt](https://productsway.gitbook.io/typescript-tips/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://productsway.gitbook.io/typescript-tips/notes/housecor-1596861970170671104.md).

# housecor - 1596861970170671104

![housecor](https://pbs.twimg.com/profile_images/1525874017630035970/veQQouGw_normal.jpg) Cory House ([@housecor](https://twitter.com/housecor)) - November 27, 2022 at 9:42 PM

TypeScript tip: Many optional properties are a code smell.

Why? Because it reduces type safety.

Example, I joined a project where every REST API call accepts this same argument. This creates confusion, and hurts type safety.

Solution? Specify exactly what each call needs. [pic.twitter.com/NEjVi4b2HF](https://twitter.com/housecor/status/1596861970170671104/photo/1)

![](https://pbs.twimg.com/media/Fikw9nnXgAAh1iF.png)

[Tweet link](https://twitter.com/housecor/status/1596861970170671104)

[Thread by @housecor on Threadify Reader App](https://threadify.productsway.com/thread/1596861970170671104)
