Danh mục

mattpocock/ts-reset

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

snapshot · 26/10/2026
MT

mattpocock/ts-reset

TypeScript · danh tính provisional_slug_only

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

resettypescript
Sao8.6klịch sử sao
Hạng#6673snapshot toàn cục
Fork149bản ghi nguồn
Số ngày trending0lịch sử xu hướng
Snapshot chỉ có lịch sử sao đầy đủ của star-history/star-history. Lịch sử thiếu thì không vẽ.

README

Từ GitHub · lưu tạm tối đa 7 ngày

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