Without ts-reset
:
- ๐จ
.json
(infetch
) andJSON.parse
both returnany
- ๐คฆ
.filter(Boolean)
doesn't behave how you expect - ๐ก
array.includes
often breaks on readonly arrays
ts-reset
smooths over these hard edges, just like a CSS reset does in the browser.
With ts-reset
:
- ๐
.json
(infetch
) andJSON.parse
both returnunknown
- โ
.filter(Boolean)
behaves EXACTLY how you expect - ๐ฅน
array.includes
is widened to be more ergonomic - ๐ And several more changes!
Check out our docs page on Total TypeScript