MyGit

mattpocock/ts-reset

Fork: 124 Star: 7898 (更新于 2024-11-01 08:55:32)

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最近更新仓库

2024-11-05 17:55:23 langgenius/dify

2024-11-05 17:35:52 siyuan-note/siyuan

2024-11-05 16:59:32 laurent22/joplin

2024-11-05 12:39:27 lobehub/lobe-chat

2024-11-05 11:52:31 RSSNext/Follow

2024-11-05 07:18:03 microsoft/genaiscript