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

15 lines
302 B
TypeScript

// @noImplicitReferences: true
// @traceResolution: true
// @currentDirectory: /src
// @typeRoots: types
// We can find typings in the ./types folder
// @filename: /src/types/jquery/index.d.ts
declare var $: { foo(): void };
// @filename: /src/consumer.ts
/// <reference types="jquery" />
$.foo();