TypeScript/tests/baselines/reference/partiallyAmbientClodule.types

11 lines
215 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/partiallyAmbientClodule.ts ===
declare module foo {
>foo : typeof foo
2014-08-15 23:33:16 +02:00
export function x(): any;
>x : () => any
2014-08-15 23:33:16 +02:00
}
class foo { } // Legal, because module is ambient
>foo : foo
2014-08-15 23:33:16 +02:00