TypeScript/tests/baselines/reference/typeReferenceDirectives5.js
2016-04-11 21:36:07 -07:00

25 lines
396 B
TypeScript

//// [tests/cases/compiler/typeReferenceDirectives5.ts] ////
//// [ref.d.ts]
export interface $ { x }
//// [index.d.ts]
declare let $: { x: number }
//// [app.ts]
/// <reference types="lib"/>
import {$} from "./ref";
export interface A {
x: typeof $;
}
//// [app.js]
"use strict";
//// [app.d.ts]
/// <reference types="lib" />
export interface A {
x: typeof $;
}