TypeScript/tests/baselines/reference/declFileForInterfaceWithRestParams.js

18 lines
417 B
TypeScript
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-11-11 00:39:01 +01:00
foo(...x: any[]): typeof x;
foo2(a: number, ...x: any[]): typeof x;
foo3(b: string, ...x: string[]): typeof x;
}