mattpocock/ts-reset
Fork: 124 Star: 7938 (更新于 2024-12-20 07:09:13)
license: MIT
Language: TypeScript .
A 'CSS reset' for TypeScript, improving types for common JavaScript API's
最后发布版本: v0.4.2 ( 2023-03-09 01:47:03)
Without ts-reset
:
- 🚨
.json
(infetch
) andJSON.parse
both returnany
- 🤦
.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
(infetch
) andJSON.parse
both returnunknown
- ✅
.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
最近版本更新:(数据更新于 2024-10-06 11:24:48)
2023-03-09 01:47:03 v0.4.2
2023-02-21 06:26:15 v0.3.7
2023-02-21 03:12:20 v0.3.6
2023-02-21 00:19:18 v0.3.5
2023-02-21 00:15:01 v0.3.4
2023-02-20 20:06:41 v0.3.3
2023-02-20 05:26:57 v0.3.2
2023-02-20 05:13:44 v0.3.1
2023-02-20 05:08:24 v0.3.0
2023-02-20 04:26:13 v0.2.1
主题(topics):
reset, typescript
mattpocock/ts-reset同语言 TypeScript最近更新仓库
2024-12-22 15:05:26 elizaOS/eliza
2024-12-21 21:40:12 lobehub/lobe-chat
2024-12-21 12:01:51 siyuan-note/siyuan
2024-12-21 09:15:35 MetaCubeX/metacubexd
2024-12-21 04:50:26 mediar-ai/screenpipe
2024-12-20 19:36:48 vitejs/vite