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]
|
2014-07-11 23:44:31 +02:00
|
|
|
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[];
|
2014-07-11 23:44:31 +02:00
|
|
|
}
|