Title: Update descriptions for all compiler options by orta · Pull Request #44409 · microsoft/TypeScript · GitHub
Open Graph Title: Update descriptions for all compiler options by orta · Pull Request #44409 · microsoft/TypeScript
X Title: Update descriptions for all compiler options by orta · Pull Request #44409 · microsoft/TypeScript
Description: Back at the end of 2020 we had a series of meetings going through all the tsconfig options, revising their descriptions and making them all consistent. They were then moved into the website, with the goal of bringing them upstream later. Today is that later, heh.
Overview of the new descriptions:
❯ node built/local/tsc.js --help --all
Version 4.4.0-dev
Syntax: tsc [options] [file...]
Examples: tsc hello.ts
tsc --outFile file.js file.ts
tsc @args.txt
tsc --build tsconfig.json
Options:
--all Show all compiler options.
--allowJs Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files.
--allowSyntheticDefaultImports Allow 'import x from y' when a module doesn't have a default export.
--allowUmdGlobalAccess Allow accessing UMD globals from modules.
--allowUnreachableCode Disable error reporting for unreachable code.
--allowUnusedLabels Disable error reporting for unused labels.
--alwaysStrict Ensure 'use strict' is always emitted.
--assumeChangesOnlyAffectDirectDependencies Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it.
--baseUrl Specify the base directory to resolve non-relative module names.
-b, --build Build one or more projects and their dependencies, if out of date
--charset No longer supported. In early versions, manually set the text encoding for reading files.
--checkJs Enable error reporting in type-checked JavaScript files.
--composite Enable constraints that allow a TypeScript project to be used with project references.
-d, --declaration Generate .d.ts files from TypeScript and JavaScript files in your project.
--declarationDir DIRECTORY Specify the output directory for generated declaration files.
--declarationMap Create sourcemaps for d.ts files.
--diagnostics Output compiler performance information after building.
--disableReferencedProjectLoad Reduce the number of projects loaded automatically by TypeScript.
--disableSizeLimit Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server.
--disableSolutionSearching Opt a project out of multi-project reference checking when editing.
--disableSourceOfProjectReferenceRedirect Disable preferring source files instead of declaration files when referencing composite projects
--downlevelIteration Emit more compliant, but verbose and less performant JavaScript for iteration.
--emitBOM Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
--emitDeclarationOnly Only output d.ts files and not JavaScript files.
--emitDecoratorMetadata Emit design-type metadata for decorated declarations in source files.
--esModuleInterop Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility.
--experimentalDecorators Enable experimental support for TC39 stage 2 draft decorators.
--explainFiles Print files read during the compilation including why it was included.
--extendedDiagnostics Output more detailed compiler performance information after building.
--forceConsistentCasingInFileNames Ensure that casing is correct in imports.
--generateCpuProfile FILE OR DIRECTORY Emit a v8 CPU profile of the compiler run for debugging.
--generateTrace DIRECTORY Generates an event trace and a list of types.
-h, --help Print this message.
--importHelpers Allow importing helper functions from tslib once per project, instead of including them per-file.
--importsNotUsedAsValues Specify emit/checking behavior for imports that are only used for types
-i, --incremental Enable incremental compilation
--init Initializes a TypeScript project and creates a tsconfig.json file.
--inlineSourceMap Include sourcemap files inside the emitted JavaScript.
--inlineSources Include source code in the sourcemaps inside the emitted JavaScript.
--isolatedModules Ensure that each file can be safely transpiled without relying on other imports.
--jsx KIND Specify what JSX code is generated.
--jsxFactory Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'
--jsxFragmentFactory Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.
--jsxImportSource Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`
--keyofStringsOnly Make keyof only return strings instead of string, numbers or symbols. Legacy option.
--lib Specify a set of bundled library declaration files that describe the target runtime environment.
'es5' 'es6' 'es2015' 'es7' 'es2016' 'es2017' 'es2018' 'es2019' 'es2020' 'es2021' 'esnext' 'dom' 'dom.iterable' 'webworker' 'webworker.importscripts' 'webworker.iterable' 'scripthost' 'es2015.core' 'es2015.collection' 'es2015.generator' 'es2015.iterable' 'es2015.promise' 'es2015.proxy' 'es2015.reflect' 'es2015.symbol' 'es2015.symbol.wellknown' 'es2016.array.include' 'es2017.object' 'es2017.sharedmemory' 'es2017.string' 'es2017.intl' 'es2017.typedarrays' 'es2018.asyncgenerator' 'es2018.asynciterable' 'es2018.intl' 'es2018.promise' 'es2018.regexp' 'es2019.array' 'es2019.object' 'es2019.string' 'es2019.symbol' 'es2020.bigint' 'es2020.promise' 'es2020.sharedmemory' 'es2020.string' 'es2020.symbol.wellknown' 'es2020.intl' 'es2021.promise' 'es2021.string' 'es2021.weakref' 'esnext.array' 'esnext.symbol' 'esnext.asynciterable' 'esnext.intl' 'esnext.bigint' 'esnext.string' 'esnext.promise' 'esnext.weakref'
--listEmittedFiles Print the names of emitted files after a compilation.
--listFiles Print all of the files read during the compilation.
--listFilesOnly Print names of files that are part of the compilation and then stop processing.
--locale Set the language of the messaging from TypeScript. This does not affect emit.
--mapRoot LOCATION Specify the location where debugger should locate map files instead of generated locations.
--maxNodeModuleJsDepth Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`.
-m KIND, --module KIND Specify what module code is generated.
--moduleResolution STRATEGY Specify how TypeScript looks up a file from a given module specifier.
--newLine NEWLINE Set the newline character for emitting files.
--noEmit Disable emitting file from a compilation.
--noEmitHelpers Disable generating custom helper functions like `__extends` in compiled output.
--noEmitOnError Disable emitting files if any type checking errors are reported.
--noErrorTruncation Disable truncating types in error messages.
--noFallthroughCasesInSwitch Enable error reporting for fallthrough cases in switch statements.
--noImplicitAny Enable error reporting for expressions and declarations with an implied `any` type..
--noImplicitOverride Add `undefined` to a type when accessed using an index.
--noImplicitReturns Enable error reporting for codepaths that do not explicitly return in a function.
--noImplicitThis Enable error reporting when `this` is given the type `any`.
--noImplicitUseStrict Disable adding 'use strict' directives in emitted JavaScript files.
--noLib Disable including any library files, including the default lib.d.ts.
--noPropertyAccessFromIndexSignature Enforces using indexed accessors for keys declared using an indexed type
--noResolve Disallow `import`s, `require`s or `
Open Graph Description: Back at the end of 2020 we had a series of meetings going through all the tsconfig options, revising their descriptions and making them all consistent. They were then moved into the website, with t...
X Description: Back at the end of 2020 we had a series of meetings going through all the tsconfig options, revising their descriptions and making them all consistent. They were then moved into the website, with t...
Opengraph URL: https://github.com/microsoft/TypeScript/pull/44409
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:c667a064-d37f-b3a0-5aa1-d912457b920e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D3BE:242DB0:31890F:443B3B:69975615 |
| html-safe-nonce | a86a8fe14658159e5d1f185e107fa86495e6a4f8c205dd227341b90c53bf1f87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0JFOjI0MkRCMDozMTg5MEY6NDQzQjNCOjY5OTc1NjE1IiwidmlzaXRvcl9pZCI6IjM4MTgyMjY0NTYxOTY1MDMwNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9e0870548dd8b4b2aa6ae55327f6cdd625cfa5d15bbe941e7ff553090a0f884f |
| hovercard-subject-tag | pull_request:660915597 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/microsoft/TypeScript/pull/44409/commits/aa294b9ffd93b628fd7e03f531b3c598b3f03a4d |
| twitter:image | https://avatars.githubusercontent.com/u/49038?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/49038?s=400&v=4 |
| og:image:alt | Back at the end of 2020 we had a series of meetings going through all the tsconfig options, revising their descriptions and making them all consistent. They were then moved into the website, with t... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c2f6b9675e9141deef3eda21e5cb896d461bd4d25aeaeeba804502ef0e8d01f2 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06ceed63f0d4941788d6c52a00d38ad77b6eaf89 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width