文件最后提交记录最后更新时间
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Add 'lib' reference support7 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Fix import order (#37510)6 年前
PR Feedback7 年前
Improve type checking and inference for Generators and Async Generators (#30790)6 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Move symbol instance type to es5 to follow PropertyKey (#23864)7 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Enable jsdoc-format lint rule9 年前
Add 'lib' reference support7 年前
Add 'lib' reference support7 年前
Add 'lib' reference support7 年前
Add 'lib' reference support7 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
microsoft-typescript/no-double-space6 年前
lib: remove length field from SharedArrayBuffer (#40858)5 年前
Enable jsdoc-format lint rule9 年前
Added empty constructors to TypedArrays from es2017 (#19680)8 年前
Fix incorrect parameter types for AsyncIterator next/return (#33354)6 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Fix import order (#37510)6 年前
Add 'lib' reference support7 年前
NumberFormat新增接口10 个月前
Revert 'awaited' type (#37610)6 年前
Port changes in #24238 to source file7 年前
Accurate Array.prototype.flat definition (#32131)6 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Symbol.prototype.description hit stage 47 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Simplify return type of Object.fromEntries (#37457)6 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
fix(lib/es2019): Symbol.description may be undefined (#36263)6 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
add ES2020 matchAll APIs (#30936)7 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Add lib es2020.sharedmemory (#39541)5 年前
jsdoc/check-alignment6 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
ResolvedNumberFormatOptions必选改可选6 个月前
Add 'lib' reference support7 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Add 'lib' reference support7 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
add no-default-lib tag to core libraries10 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Add WSH as an alias for WScript in scripthost.d.ts7 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
Fix lint errors9 年前
Upgrade typescript to 4.9.5 from 4.2.32 年前
README.md

Read this!

The files within this directory are copied and deployed with TypeScript as the set of APIs available as a part of the JavaScript language.

There are three main domains of APIs in src/lib:

  • ECMAScript language features - e.g. JavaScript APIs like functions on Array etc which are documented in ECMA-262
  • DOM APIs - e.g. APIs which are available in web browsers
  • Intl APIs - e.g. APIs scoped to Intl which are documented in ECMA-402

How do we figure out when to add something?

TypeScript has a rule-of-thumb to only add something when it has got far enough through the standards process that it is more or less confirmed. For JavaScript APIs and language features, that means the proposal is at stage 3 or later.

You can find the source of truth for modern language features and Intl APIs in these completed proposal lists:

For the DOM APIs, which are a bit more free-form, we have asked that APIs are available un-prefixed/flagged in at least 2 browser engines (i.e. not just 2 chromium browsers.)

Generated files

The DOM files ending in .generated.d.ts aren't meant to be edited by hand.

If you need to make changes to such files, make a change to the input files for our library generator.