mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
285 B
TypeScript
15 lines
285 B
TypeScript
//// [tests/cases/conformance/references/library-reference-6.ts] ////
|
|
|
|
//// [index.d.ts]
|
|
declare var alpha: { a: string };
|
|
|
|
//// [foo.ts]
|
|
/// <reference types="alpha" />
|
|
var x: string = alpha.a;
|
|
|
|
|
|
//// [foo.js]
|
|
"use strict";
|
|
/// <reference types="alpha" />
|
|
var x = alpha.a;
|