对 TypeScript 进行了 CSS 重置,改进了常用 JavaScript API 的类型
Without ts-reset:
.json (in fetch) and JSON.parse both return any.filter(Boolean) doesn't behave how you expectarray.includes often breaks on readonly arraysts-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 expectarray.includes is widened to be more ergonomicCheck out our docs page on Total TypeScript
暂无开放 Issues,或尚未同步最近议题。