Files
tsgo/testdata/baselines/reference/submodule/compiler/declFileForInterfaceWithRestParams.js

20 lines
505 B
TypeScript

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