23 lines
441 B
Text
23 lines
441 B
Text
|
=== 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[]
|
||
|
}
|