Skip to content

Commit

Permalink
TsConfigJson: Add noCheck to compilerOptions (#981)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <[email protected]>
  • Loading branch information
blutorange and sindresorhus authored Nov 14, 2024
1 parent 13c0c83 commit a470913
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/tsconfig-json.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,13 @@ declare namespace TsConfigJson {
*/
newLine?: CompilerOptions.NewLine;

/**
Disable full type checking (only critical parse and emit errors will be reported).
@default false
*/
noCheck?: boolean;

/**
Do not emit output.
Expand Down
2 changes: 2 additions & 0 deletions test-d/tsconfig-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ expectType<string[] | undefined>(tsConfig.include);
expectType<TsConfigJson.References[] | undefined>(tsConfig.references);
expectType<TsConfigJson.TypeAcquisition | undefined>(tsConfig.typeAcquisition);
expectAssignable<Jsonifiable>(tsConfig);

expectType<boolean | undefined>(tsConfig.compilerOptions?.noCheck);

0 comments on commit a470913

Please sign in to comment.