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

13 lines
279 B
TypeScript
Raw Normal View History

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