1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
=== /index.ts ===
/// <reference path="/typings/index.d.ts" />
import * as foo from "shortid";
>foo : Symbol(foo, Decl(index.ts, 1, 6))
foo.x // found in index.d.ts
>foo.x : Symbol(foo.x, Decl(index.d.ts, 1, 14))
>foo : Symbol(foo, Decl(index.ts, 1, 6))
>x : Symbol(foo.x, Decl(index.d.ts, 1, 14))
foo.y // ignored from shortid/index.js
>foo : Symbol(foo, Decl(index.ts, 1, 6))
=== /typings/index.d.ts ===
declare module "shortid" {
>"shortid" : Symbol("shortid", Decl(index.d.ts, 0, 0))
export var x: number;
>x : Symbol(x, Decl(index.d.ts, 1, 14))
}
|