2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts ===
|
|
|
|
|
|
|
|
interface I {
|
2015-04-16 01:44:20 +02:00
|
|
|
>I : I
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
foo? (x?);
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : (x?: any) => any
|
|
|
|
>x : any
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
foo2? (x?: number): number;
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo2 : (x?: number) => number
|
|
|
|
>x : number
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|