TypeScript/tests/baselines/reference/declFileForInterfaceWithOptionalFunction.js

16 lines
304 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [declFileForInterfaceWithOptionalFunction.ts]
interface I {
foo? (x?);
foo2? (x?: number): number;
}
//// [declFileForInterfaceWithOptionalFunction.js]
//// [declFileForInterfaceWithOptionalFunction.d.ts]
interface I {
2014-07-12 01:36:06 +02:00
foo?(x?: any): any;
foo2?(x?: number): number;
}