Skip to content

mattpocock/ts-reset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

22f39a8 · Oct 22, 2024
Sep 2, 2024
Aug 24, 2024
Feb 20, 2023
Sep 2, 2024
Feb 20, 2023
Oct 21, 2024
Sep 2, 2024
Feb 20, 2023
Aug 31, 2023
Sep 2, 2024
Aug 24, 2024
Oct 22, 2024
Feb 20, 2023
May 27, 2024

Repository files navigation

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