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

13 lines
276 B
TypeScript
Raw Normal View History

// @noImplicitReferences: true
// @traceResolution: true
// @currentDirectory: /
// Secondary references are possible
// @filename: /src/node_modules/jquery/index.d.ts
declare var $: { foo(): void };
// @filename: /src/consumer.ts
/// <reference types="jquery" />
$.foo();