TypeScript/tests/cases/conformance/references/library-reference-6.ts

15 lines
308 B
TypeScript
Raw Normal View History

2016-02-23 21:48:31 +01:00
// @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
{
}