19 lines
No EOL
613 B
Text
19 lines
No EOL
613 B
Text
tests/cases/conformance/externalModules/a.ts(1,1): error TS2304: Cannot find name 'Foo'.
|
|
tests/cases/conformance/externalModules/a.ts(2,8): error TS2503: Cannot find namespace 'Foo'.
|
|
|
|
|
|
==== tests/cases/conformance/externalModules/a.ts (2 errors) ====
|
|
Foo.fn();
|
|
~~~
|
|
!!! error TS2304: Cannot find name 'Foo'.
|
|
let x: Foo.Thing;
|
|
~~~
|
|
!!! error TS2503: Cannot find namespace 'Foo'.
|
|
let y: number = x.n;
|
|
|
|
==== tests/cases/conformance/externalModules/foo.d.ts (0 errors) ====
|
|
|
|
export var x: number;
|
|
export function fn(): void;
|
|
export as namespace Foo;
|
|
|