mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
declFile.d.ts(2,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
|
declFile.d.ts(3,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
|
declFile.d.ts(5,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
|
declFile.d.ts(7,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
|
|
|
|
|
==== client.ts (0 errors) ====
|
|
///<reference path="declFile.d.ts" preserve="true"/>
|
|
var x = new M.C(); // Declaration file wont get emitted because there are errors in declaration file
|
|
|
|
==== declFile.d.ts (4 errors) ====
|
|
declare namespace M {
|
|
declare var x;
|
|
~~~~~~~
|
|
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
|
declare function f();
|
|
~~~~~~~
|
|
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
|
|
|
declare namespace N { }
|
|
~~~~~~~
|
|
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
|
|
|
declare class C { }
|
|
~~~~~~~
|
|
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
|
}
|
|
|