Fix typo in emitDeclarationOnly error message for declaration required
This commit is contained in:
parent
6959bda3c9
commit
bcf6e342f1
|
@ -2201,7 +2201,7 @@ namespace ts {
|
|||
|
||||
if (options.emitDeclarationOnly) {
|
||||
if (!options.declaration) {
|
||||
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDeclarationOnly", "declarations");
|
||||
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDeclarationOnly", "declaration");
|
||||
}
|
||||
|
||||
if (options.noEmit) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declarations'.
|
||||
error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration'.
|
||||
|
||||
|
||||
!!! error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declarations'.
|
||||
!!! error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration'.
|
||||
==== tests/cases/compiler/hello.ts (0 errors) ====
|
||||
var hello = "yo!";
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declarations'.
|
||||
error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration'.
|
||||
error TS5053: Option 'emitDeclarationOnly' cannot be specified with option 'noEmit'.
|
||||
|
||||
|
||||
!!! error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declarations'.
|
||||
!!! error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration'.
|
||||
!!! error TS5053: Option 'emitDeclarationOnly' cannot be specified with option 'noEmit'.
|
||||
==== tests/cases/compiler/hello.ts (0 errors) ====
|
||||
var hello = "yo!";
|
||||
|
|
Loading…
Reference in a new issue