TypeScript/tests/baselines/reference/declFileForInterfaceWithRestParams.js
2014-11-10 17:01:09 -08:00

18 lines
417 B
TypeScript

//// [declFileForInterfaceWithRestParams.ts]
interface I {
foo(...x): typeof x;
foo2(a: number, ...x): typeof x;
foo3(b: string, ...x: string[]): typeof x;
}
//// [declFileForInterfaceWithRestParams.js]
//// [declFileForInterfaceWithRestParams.d.ts]
interface I {
foo(...x: any[]): typeof x;
foo2(a: number, ...x: any[]): typeof x;
foo3(b: string, ...x: string[]): typeof x;
}