TypeScript/tests/baselines/reference/declFileForInterfaceWithRestParams.types

23 lines
441 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/declFileForInterfaceWithRestParams.ts ===
interface I {
>I : I
2014-08-15 23:33:16 +02:00
foo(...x): typeof x;
>foo : (...x: any[]) => any[]
>x : any[]
>x : any[]
2014-08-15 23:33:16 +02:00
foo2(a: number, ...x): typeof x;
>foo2 : (a: number, ...x: any[]) => any[]
>a : number
>x : any[]
>x : any[]
2014-08-15 23:33:16 +02:00
foo3(b: string, ...x: string[]): typeof x;
>foo3 : (b: string, ...x: string[]) => string[]
>b : string
>x : string[]
>x : string[]
2014-08-15 23:33:16 +02:00
}