22 lines
379 B
TypeScript
22 lines
379 B
TypeScript
//// [tests/cases/conformance/references/library-reference-2.ts] ////
|
|
|
|
//// [package.json]
|
|
|
|
// package.json in a primary reference can refer to another file
|
|
|
|
{
|
|
"types": "jquery.d.ts"
|
|
}
|
|
|
|
//// [jquery.d.ts]
|
|
declare var $: { foo(): void };
|
|
|
|
|
|
//// [consumer.ts]
|
|
/// <reference types="jquery" />
|
|
$.foo();
|
|
|
|
|
|
//// [consumer.js]
|
|
/// <reference types="jquery" />
|
|
$.foo();
|