TypeScript/tests/baselines/reference/typeReferenceDirectives11.types
Yui 5853aad4ae [Transforms] Update baselines from merging with master (#8898)
* Update baselines from merging with master

* Update sourcemap baselines

Update sourcemap baselines

* Update error baselines

* Update baselines as the test-cases already include --module flag with amd

* Fix baselines

* Update baselines from merging with master. This is a fix in master (issue #8507) and the baselines was udpated in transforms before losing in merging master
2016-06-01 14:15:24 -07:00

27 lines
372 B
Plaintext

=== /mod2.ts ===
import {foo} from "./mod1";
>foo : () => Lib
export const bar = foo();
>bar : Lib
>foo() : Lib
>foo : () => Lib
=== /types/lib/index.d.ts ===
interface Lib { x }
>Lib : Lib
>x : any
=== /mod1.ts ===
export function foo(): Lib { return {x: 1} }
>foo : () => Lib
>Lib : Lib
>{x: 1} : { x: number; }
>x : number
>1 : number