discover · compare · collections · requirements · contribute · feed · watching · stats · help with your tokens
mattpocock/ts-reset · source
Snapshot 0 · 2026-11-04T12:47:27Z · TypeScript · MIT
Content fingerprint
530e59eb463ba01b38c1563720299755821fe07a11435d734764d0d359afdce1GitHub description at capture
A 'CSS reset' for TypeScript, improving types for common JavaScript API's
README at capture
 **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](https://totaltypescript.com/ts-reset)