mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
398 B
TypeScript
18 lines
398 B
TypeScript
//// [tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts] ////
|
|
|
|
//// [declFileForInterfaceWithOptionalFunction.ts]
|
|
interface I {
|
|
foo? (x?);
|
|
foo2? (x?: number): number;
|
|
}
|
|
|
|
//// [declFileForInterfaceWithOptionalFunction.js]
|
|
"use strict";
|
|
|
|
|
|
//// [declFileForInterfaceWithOptionalFunction.d.ts]
|
|
interface I {
|
|
foo?(x?: any): any;
|
|
foo2?(x?: number): number;
|
|
}
|