File: globalFunctionAugmentationOverload.symbols

package info (click to toggle)
node-typescript 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 497,488 kB
  • sloc: javascript: 2,107,274; makefile: 6; sh: 1
file content (27 lines) | stat: -rw-r--r-- 811 bytes parent folder | download
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
26
27
//// [tests/cases/compiler/globalFunctionAugmentationOverload.ts] ////

=== 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))
}
=== 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))
}