2014-07-13 01:04:16 +02:00
|
|
|
//// [declFileForInterfaceWithOptionalFunction.ts]
|
|
|
|
|
|
|
|
interface I {
|
|
|
|
foo? (x?);
|
|
|
|
foo2? (x?: number): number;
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [declFileForInterfaceWithOptionalFunction.js]
|
|
|
|
|
|
|
|
|
|
|
|
//// [declFileForInterfaceWithOptionalFunction.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?(x?: number): number;
|
2014-07-11 23:44:31 +02:00
|
|
|
}
|