mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
15 lines
350 B
TypeScript
15 lines
350 B
TypeScript
// @noImplicitReferences: true
|
|
// @traceResolution: true
|
|
// @types: jquery
|
|
// @currentDirectory: /a
|
|
// @typeRoots: types
|
|
|
|
// @filename: /a/types/jquery/index.d.ts
|
|
declare var $: { foo(): void };
|
|
|
|
// @filename: /a/types/jquery2/index.d.ts
|
|
declare var $2: { foo(): void };
|
|
|
|
// @filename: /a/b/consumer.ts
|
|
$.foo(); // should OK
|
|
$2.foo(); // should error
|