117
rated 0 times
[
119]
[
2]
/ answers: 1 / hits: 78752
/ 10 Years ago, wed, december 17, 2014, 12:00:00
Is it possible to create an Interface in TypeScript with optional function?
interface IElement {
name: string;
options: any;
type: string;
value?: string;
validation(any): boolean; // --> should be optional.
}
More From » typescript