File: typeAliasDoesntMakeModuleInstantiated.types

package info (click to toggle)
node-typescript 2.1.5-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 203,960 kB
  • sloc: sh: 11; makefile: 5
file content (24 lines) | stat: -rw-r--r-- 644 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
=== tests/cases/compiler/typeAliasDoesntMakeModuleInstantiated.ts ===
declare module m {
>m : IStatic

    // type alias declaration here shouldnt make the module declaration instantiated
    type Selector = string| string[] |Function;
>Selector : Selector
>Function : Function

    export interface IStatic {
>IStatic : IStatic

        (selector: any /* Selector */): IInstance;
>selector : any
>IInstance : IInstance
    }
    export interface IInstance { }
>IInstance : IInstance
}
declare var m: m.IStatic; // Should be ok to have var 'm' as module is non instantiated
>m : m.IStatic
>m : any
>IStatic : m.IStatic