File: quickInfoForTypeParameterInTypeAlias2.ts

package info (click to toggle)
node-typescript 4.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 396,552 kB
  • sloc: javascript: 1,444,377; makefile: 7; sh: 3
file content (16 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// <reference path="fourslash.ts" />

//// type Call<AA> = { (): A/*1*/A };
//// type Index<AA> = {[foo: string]: A/*2*/A};
//// type GenericMethod<AA> = { method<BB>(): A/*3*/A & B/*4*/B }
//// type Nesting<TT> = { method<UU>(): new <WW>() => T/*5*/T & U/*6*/U & W/*7*/W };

verify.quickInfos({
    1: "(type parameter) AA in type Call<AA>",
    2: "(type parameter) AA in type Index<AA>",
    3: "(type parameter) AA in type GenericMethod<AA>",
    4: "(type parameter) BB in method<BB>(): AA & BB",
    5: "(type parameter) TT in type Nesting<TT>",
    6: "(type parameter) UU in method<UU>(): new <WW>() => TT & UU & WW",
    7: "(type parameter) WW in <WW>(): TT & UU & WW"
});