TypeScript/tests/cases/conformance/references/library-reference-6.ts
2016-04-01 12:19:16 -07:00

15 lines
308 B
TypeScript

// @noImplicitReferences: true
// The primary lookup folder is relative to tsconfig.json, if present
// @filename: typings/alpha/index.d.ts
declare var alpha: { a: string };
// @filename: src/foo.ts
/// <reference library="alpha" />
var x: string = alpha.a;
// @filename: tsconfig.json
{
}