Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 6d22d47

Browse files
authored
Add more comments on default library with no --lib
Fixes microsoft/TypeScript#11093
1 parent 29b1d24 commit 6d22d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/Compiler Options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Option | Type | Default
2222
`--init` | | | Initializes a TypeScript project and creates a `tsconfig.json` file.
2323
`--isolatedModules` | `boolean` | `false` | Unconditionally emit imports for unresolved files.
2424
`--jsx` | `string` | `"Preserve"` | Support JSX in '.tsx' files: `'React'` or `'Preserve'`. See [JSX](./JSX.md).
25-
`--lib` | `string[]`| | List of library files to be included in the compilation.</br>Possible values are: <br/>► `es5` <br/>► `es6` <br/>► `es2015` <br/>► `es7` <br/>► `es2016` <br/>► `es2017` `dom` `webworker` `scripthost` <br/>► `es2015.core` <br/>► `es2015.collection` <br/>► `es2015.generator` <br/>► `es2015.iterable` <br/>► `es2015.promise` <br/>► `es2015.proxy` <br/>► `es2015.reflect` <br/>► `es2015.symbol` <br/>► `es2015.symbol.wellknown` <br/>► `es2016.array.include` <br/>► `es2017.object` <br/>► `es2017.sharedmemory`
25+
`--lib` | `string[]`| | List of library files to be included in the compilation.</br>Possible values are: <br/>► `es5` <br/>► `es6` <br/>► `es2015` <br/>► `es7` <br/>► `es2016` <br/>► `es2017` `dom` `webworker` `scripthost` <br/>► `es2015.core` <br/>► `es2015.collection` <br/>► `es2015.generator` <br/>► `es2015.iterable` <br/>► `es2015.promise` <br/>► `es2015.proxy` <br/>► `es2015.reflect` <br/>► `es2015.symbol` <br/>► `es2015.symbol.wellknown` <br/>► `es2016.array.include` <br/>► `es2017.object` <br/>► `es2017.sharedmemory` <br/><br/> Note: If `--lib` is not specified a default library is injected. The default library injected is: <br/> ► For `--target ES5`: `dom,es5,scripthost`</br> ► For `--target ES6`: `dom,es6,dom.iterable,scripthost`
2626
`--listEmittedFiles` | `boolean` | `false` | Print names of generated files part of the compilation.
2727
`--listFiles` | `boolean` | `false` | Print names of files part of the compilation.
2828
`--locale` | `string` | *(platform specific)* | The locale to use to show error messages, e.g. en-us.

0 commit comments

Comments
 (0)