TypeScript/tests/baselines/reference/declFileForInterfaceWithRestParams.js

18 lines
411 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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 {
2014-07-12 01:36:06 +02:00
foo(...x: any[]): any[];
foo2(a: number, ...x: any[]): any[];
foo3(b: string, ...x: string[]): string[];
}