mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
505 B
TypeScript
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;
|
|
}
|