1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
//// [tests/cases/compiler/typeReferenceDirectives3.ts] ////
//// [ref.d.ts]
// $ comes from d.ts file - no need to add type reference directive
interface $ { x }
//// [index.d.ts]
declare let $: { x: number }
//// [app.ts]
/// <reference types="lib"/>
/// <reference path="ref.d.ts" />
interface A {
x: () => $
}
//// [app.js]
/// <reference types="lib"/>
/// <reference path="ref.d.ts" />
//// [app.d.ts]
/// <reference path="ref.d.ts" />
interface A {
x: () => $;
}
|