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

27 lines
380 B
TypeScript

//// [tests/cases/compiler/typeReferenceDirectives10.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: $
}
//// [app.js]
"use strict";
//// [app.d.ts]
import { $ } from "./ref";
export interface A {
x: $;
}