Skip to content

Commit fdccf60

Browse files
committed
Restore lib.md and hide its allowed values
1 parent c74f105 commit fdccf60

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

packages/tsconfig-reference/copy/en/options/lib.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,42 @@ In TypeScript 4.5, lib files can be overriden by npm modules, find out more [in
3232
| `DOM` | [DOM](https://developer.mozilla.org/docs/Glossary/DOM) definitions - `window`, `document`, etc. |
3333
| `WebWorker` | APIs available in [WebWorker](https://developer.mozilla.org/docs/Web/API/Web_Workers_API/Using_web_workers) contexts |
3434
| `ScriptHost` | APIs for the [Windows Script Hosting System](https://wikipedia.org/wiki/Windows_Script_Host) |
35+
36+
### Individual library components
37+
38+
| Name |
39+
| ------------------------- |
40+
| `DOM.Iterable` |
41+
| `ES2015.Core` |
42+
| `ES2015.Collection` |
43+
| `ES2015.Generator` |
44+
| `ES2015.Iterable` |
45+
| `ES2015.Promise` |
46+
| `ES2015.Proxy` |
47+
| `ES2015.Reflect` |
48+
| `ES2015.Symbol` |
49+
| `ES2015.Symbol.WellKnown` |
50+
| `ES2016.Array.Include` |
51+
| `ES2017.object` |
52+
| `ES2017.Intl` |
53+
| `ES2017.SharedMemory` |
54+
| `ES2017.String` |
55+
| `ES2017.TypedArrays` |
56+
| `ES2018.Intl` |
57+
| `ES2018.Promise` |
58+
| `ES2018.RegExp` |
59+
| `ES2019.Array` |
60+
| `ES2019.Object` |
61+
| `ES2019.String` |
62+
| `ES2019.Symbol` |
63+
| `ES2020.String` |
64+
| `ES2020.Symbol.wellknown` |
65+
| `ES2021.Promise` |
66+
| `ES2021.String` |
67+
| `ES2021.Weakref` |
68+
| `ESNext.AsyncIterable` |
69+
| `ESNext.Array` |
70+
| `ESNext.Intl` |
71+
| `ESNext.Symbol` |
72+
73+
This list may be out of date, you can see the full list in the [TypeScript source code](https://github.com/microsoft/TypeScript/tree/main/lib).

packages/tsconfig-reference/scripts/tsconfigRules.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ export const allowedValues = {
272272
])
273273
),
274274
jsxFactory: ["Any identifier or dotted identifier."],
275+
lib: undefined,
275276
};
276277

277278
function formatAllowedValues(type: CommandLineOption["type"]) {

0 commit comments

Comments
 (0)