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

Commit a66173c

Browse files
authored
Add docs for --strictPropertyInitialization
see microsoft/TypeScript#20227
1 parent 366108f commit a66173c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/Compiler Options.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ Option | Type | Default
6767
`--skipLibCheck` | `boolean` | `false` | Skip type checking of all declaration files (`*.d.ts`).
6868
`--sourceMap` | `boolean` | `false` | Generates corresponding `.map` file.
6969
`--sourceRoot` | `string` | | Specifies the location where debugger should locate TypeScript files instead of source locations. Use this flag if the sources will be located at run-time in a different location than that at design-time. The location specified will be embedded in the sourceMap to direct the debugger where the source files will be located.
70-
`--strict` | `boolean` | `false` | Enable all strict type checking options. <br/>Enabling `--strict` enables `--noImplicitAny`, `--noImplicitThis`, `--alwaysStrict`, `--strictNullChecks` and `--strictFunctionTypes`.
70+
`--strict` | `boolean` | `false` | Enable all strict type checking options. <br/>Enabling `--strict` enables `--noImplicitAny`, `--noImplicitThis`, `--alwaysStrict`, `--strictNullChecks`, `--strictFunctionTypes` and `--strictPropertyInitialization`.
7171
`--strictFunctionTypes` | `boolean` | `false` | Disable bivariant parameter checking for function types.
72+
`--strictPropertyInitialization` | `boolean` | `false` | Enusre non-undefined class properties are initialized in the constructor.
7273
`--strictNullChecks` | `boolean` | `false` | In strict null checking mode, the `null` and `undefined` values are not in the domain of every type and are only assignable to themselves and `any` (the one exception being that `undefined` is also assignable to `void`).
7374
`--stripInternal`<sup>[1]</sup> | `boolean` | `false` | Do not emit declarations for code that has an `/** @internal */` JSDoc annotation.
7475
`--suppressExcessPropertyErrors` | `boolean` | `false` | Suppress excess property checks for object literals.

0 commit comments

Comments
 (0)