16 lines
342 B
TypeScript
16 lines
342 B
TypeScript
//// [tests/cases/conformance/references/library-reference-6.ts] ////
|
|
|
|
//// [index.d.ts]
|
|
|
|
// The primary lookup folder is relative to tsconfig.json, if present
|
|
|
|
declare var alpha: { a: string };
|
|
|
|
//// [foo.ts]
|
|
/// <reference types="alpha" />
|
|
var x: string = alpha.a;
|
|
|
|
|
|
//// [foo.js]
|
|
/// <reference types="alpha" />
|
|
var x = alpha.a;
|