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

0.6.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @total-typescript/ts-reset

Weekly Downloads

268,486

Version

0.6.1

License

MIT

Unpacked Size

183 kB

Total Files

47

Last publish

Collaborators

  • mpocock