mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add noCheck API option (#57934)
This commit is contained in:
@@ -4425,6 +4425,15 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
|
||||
}
|
||||
}
|
||||
|
||||
if (options.noCheck) {
|
||||
if (options.noEmit) {
|
||||
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "noCheck", "noEmit");
|
||||
}
|
||||
if (!options.emitDeclarationOnly) {
|
||||
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "noCheck", "emitDeclarationOnly");
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
options.emitDecoratorMetadata &&
|
||||
!options.experimentalDecorators
|
||||
|
||||
Reference in New Issue
Block a user