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