TypeScript/tests/baselines/reference/declFileForInterfaceWithRestParams.types
2015-04-15 16:44:20 -07:00

23 lines
441 B
Plaintext

=== tests/cases/compiler/declFileForInterfaceWithRestParams.ts ===
interface I {
>I : I
foo(...x): typeof x;
>foo : (...x: any[]) => any[]
>x : any[]
>x : any[]
foo2(a: number, ...x): typeof x;
>foo2 : (a: number, ...x: any[]) => any[]
>a : number
>x : any[]
>x : any[]
foo3(b: string, ...x: string[]): typeof x;
>foo3 : (b: string, ...x: string[]) => string[]
>b : string
>x : string[]
>x : string[]
}