TypeScript/tests/cases/conformance/references/library-reference-3.ts

11 lines
236 B
TypeScript
Raw Normal View History

2016-02-23 21:48:31 +01:00
// @noImplicitReferences: true
// Secondary references are possible
// @filename: src/node_modules/jquery/index.d.ts
declare var $: { foo(): void };
// @filename: src/consumer.ts
/// <reference library="jquery" />
$.foo();