MyGit

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)

官方网址 GitHub网址

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

最近版本更新:(数据更新于 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最近更新仓库

2025-01-18 21:38:50 chenfan0/fideo-live-record

2025-01-18 15:06:58 RSSNext/Follow

2025-01-18 13:15:01 labring/FastGPT

2025-01-18 04:09:49 bluesky-social/social-app

2025-01-17 20:54:16 lobehub/lobe-chat

2025-01-17 11:06:01 TBXark/ChatGPT-Telegram-Workers