@total-typescript/ts-reset
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

ts-reset

TypeScript's built-in typings are not perfect. ts-reset makes them better.

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

Readme

Keywords

none

Package Sidebar

Install

npm i @total-typescript/ts-reset

Weekly Downloads

264,583

Version

0.5.1

License

MIT

Unpacked Size

11.7 kB

Total Files

41

Last publish

Collaborators

  • mpocock