TypeScript/tests/cases/conformance/references/library-reference-6.ts
Vladimir Matveev 12d90f3be9 added tests
2016-04-01 12:41:45 -07:00

16 lines
334 B
TypeScript

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