File: globalFunctionAugmentationOverload.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (25 lines) | stat: -rw-r--r-- 779 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
=== tests/cases/compiler/mod.d.ts ===
declare function expect(spy: Function): void;
>expect : Symbol(expect, Decl(mod.d.ts, 0, 0), Decl(mine.ts, 2, 16))
>spy : Symbol(spy, Decl(mod.d.ts, 0, 24))
>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))

declare module "mod" {
>"mod" : Symbol("mod", Decl(mod.d.ts, 0, 45))

    class mod {}
>mod : Symbol(mod, Decl(mod.d.ts, 1, 22))

    export = mod;
>mod : Symbol(mod, Decl(mod.d.ts, 1, 22))
}
=== tests/cases/compiler/mine.ts ===
import "mod";

declare global {
>global : Symbol(global, Decl(mine.ts, 0, 13))

    function expect(element: string): void;
>expect : Symbol(expect, Decl(mod.d.ts, 0, 0), Decl(mine.ts, 2, 16))
>element : Symbol(element, Decl(mine.ts, 3, 20))
}