A 'CSS reset' for TypeScript, improving types for common JavaScript API's
A 'CSS reset' for TypeScript, improving types for common JavaScript API's
Without ts-reset:
.json (in fetch) and JSON.parse both return any.filter(Boolean) doesn't behave how you expectarray.includes often breaks on readonly arraysts-reset smooths over these hard edges, just like a CSS reset does in the browser.
With ts-reset:
.json (in fetch) and JSON.parse both return unknown.filter(Boolean) behaves EXACTLY how you expectarray.includes is widened to be more ergonomicCheck out our docs page on Total TypeScript
No open issues yet, or sync has not completed.