31 lines
827 B
Text
31 lines
827 B
Text
=== tests/cases/compiler/overloadsAndTypeArgumentArity.ts ===
|
|
declare function Callbacks(flags?: string): void;
|
|
>Callbacks : typeof Callbacks
|
|
>flags : string
|
|
|
|
declare function Callbacks<T>(flags?: string): void;
|
|
>Callbacks : typeof Callbacks
|
|
>T : T
|
|
>flags : string
|
|
|
|
declare function Callbacks<T1, T2>(flags?: string): void;
|
|
>Callbacks : typeof Callbacks
|
|
>T1 : T1
|
|
>T2 : T2
|
|
>flags : string
|
|
|
|
declare function Callbacks<T1, T2, T3>(flags?: string): void;
|
|
>Callbacks : typeof Callbacks
|
|
>T1 : T1
|
|
>T2 : T2
|
|
>T3 : T3
|
|
>flags : string
|
|
|
|
Callbacks<number, string, boolean>('s'); // no error
|
|
>Callbacks<number, string, boolean>('s') : void
|
|
>Callbacks : typeof Callbacks
|
|
|
|
new Callbacks<number, string, boolean>('s'); // no error
|
|
>new Callbacks<number, string, boolean>('s') : any
|
|
>Callbacks : typeof Callbacks
|
|
|