Fix typo in emitDeclarationOnly error message for declaration required

This commit is contained in:
Martyn Janes 2018-03-09 22:37:10 +03:00
parent 6959bda3c9
commit bcf6e342f1
3 changed files with 5 additions and 5 deletions

View file

@ -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) {

View file

@ -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!";

View file

@ -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!";