TypeScript MIT

ts-reset

A 'CSS reset' for TypeScript, improving types for common JavaScript API's

M

mattpocock

Dernière activité 1 avr. 2026
mattpocock/ts-reset

8,6 k

étoiles

146

forks

54

issues ouvertes

resettypescript

Ce README est souvent en anglais.

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

Projets similaires

Eric Meyer's Reset CSS for styled-components

TypeScriptcsscss-resetreset
Zzautumnz
388 étoiles20

🐒 Normalize browsers' default style

TypeScriptcsscss-librarycss-reset
Ssindresorhus
7,4 k étoiles398

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

Gojavascriptlanguagetypechecker
Mmicrosoft
111,3 k étoiles15,3 k