Skip to content

Commit 23c17de

Browse files
authored
Add --emitDeclarationOnly flag
Fixes microsoft/TypeScript#21657
1 parent 3777349 commit 23c17de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pages/Compiler Options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Option | Type | Default
1616
`--disableSizeLimit` | `boolean` | `false` | Disable size limitation on JavaScript project.
1717
`--downlevelIteration` | `boolean` | `false` | Provide full support for iterables in `for..of`, spread and destructuring when targeting ES5 or ES3.
1818
`--emitBOM` | `boolean` | `false` | Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
19+
`--emitDeclarationOnly` | `boolean` | `false` | Only emit '.d.ts' declaration files.
1920
`--emitDecoratorMetadata`<sup>[1]</sup> | `boolean` | `false` | Emit design-type metadata for decorated declarations in source. See [issue #2577](https://github.com/Microsoft/TypeScript/issues/2577) for details.
2021
`--esModuleInterop` | `boolean` | `false` | Emit `__importStar` and `__importDefault` helpers for runtime babel ecosystem compatibility and enable `--allowSyntheticDefaultImports` for typesystem compatibility.
2122
`--experimentalDecorators`<sup>[1]</sup> | `boolean` | `false` | Enables experimental support for ES decorators.

0 commit comments

Comments
 (0)