readme.md

October 22, 2024 ยท View on GitHub

TS Reset - Improved TypeScript's Built-in Typings

Without ts-reset:

  • ๐Ÿšจ .json (in fetch) and JSON.parse both return any
  • ๐Ÿคฆ .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 (in fetch) and JSON.parse both return unknown
  • โœ… .filter(Boolean) behaves EXACTLY how you expect
  • ๐Ÿฅน array.includes is widened to be more ergonomic
  • ๐Ÿš€ And several more changes!

Official Docs

Check out our docs page on Total TypeScript