TypeScript/tests/baselines/reference/partiallyAmbientFundule.types

11 lines
228 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/partiallyAmbientFundule.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
}
function foo () { } // Legal, because module is ambient
>foo : typeof foo
2014-08-15 23:33:16 +02:00