Skip to content

Commit 4384257

Browse files
committed
fix: declaration is actually false by default
- previously said "True when TS", but that isn't accurate - upon testing, it appears to be false by default - an explicit `declaration: true` is required in `tsconfig.json` for declaration files (`.d.ts`) to be output - the Compiler Options docs also say it's default false too, so not sure why it's different in the Handbook - c.f. https://github.com/microsoft/TypeScript-Website/blob/46b960968f994968b237060065f651a368e5fc63/packages/documentation/copy/en/project-config/Compiler%20Options.md#L47
1 parent cc7d024 commit 4384257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tsconfig-reference/scripts/tsconfigRules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const defaultsForOptions = {
101101
charset: "utf8",
102102
checkJs: "false",
103103
composite: "true",
104-
declaration: "True when TS",
104+
declaration: "false",
105105
declarationDir: " n/a",
106106
declarationMap: "false",
107107
diagnostics: "false",

0 commit comments

Comments
 (0)