mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-13 22:39:32 -06:00
Merge pull request #22444 from obany/master
Fix typo in emitDeclarationOnly error message for declaration required
This commit is contained in:
commit
4b6adb8a10
@ -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…
x
Reference in New Issue
Block a user