TypeScript/tests/baselines/reference/library-reference-1.symbols
Vladimir Matveev 12d90f3be9 added tests
2016-04-01 12:41:45 -07:00

16 lines
408 B
Text

=== /consumer.ts ===
/// <reference types="jquery" />
$.foo();
>$.foo : Symbol(foo, Decl(index.d.ts, 3, 16))
>$ : Symbol($, Decl(index.d.ts, 3, 11))
>foo : Symbol(foo, Decl(index.d.ts, 3, 16))
=== /types/jquery/index.d.ts ===
// We can find typings in the ./types folder
declare var $: { foo(): void };
>$ : Symbol($, Decl(index.d.ts, 3, 11))
>foo : Symbol(foo, Decl(index.d.ts, 3, 16))