27 lines
474 B
TypeScript
27 lines
474 B
TypeScript
//// [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 path="ref.d.ts" />
|
|
|
|
|
|
//// [app.d.ts]
|
|
/// <reference path="ref.d.ts" />
|
|
interface A {
|
|
x: () => $;
|
|
}
|