swc/crates/swc_ecma_parser/tests/tsc/library-reference-5.ts

25 lines
634 B
TypeScript
Raw Normal View History

// @noImplicitReferences: true
// @traceResolution: true
// @currentDirectory: /
// @typeRoots: types
// Secondary references may not be duplicated if they disagree in content
// @filename: /node_modules/foo/index.d.ts
/// <reference types="alpha" />
declare var foo: any;
// @filename: /node_modules/foo/node_modules/alpha/index.d.ts
declare var alpha: any;
// @filename: /node_modules/bar/index.d.ts
/// <reference types="alpha" />
declare var bar: any;
// @filename: /node_modules/bar/node_modules/alpha/index.d.ts
declare var alpha: {};
// @filename: /src/root.ts
/// <reference types="foo" />
/// <reference types="bar" />