typescript how to define function type code example
Example: typescript function type
interface Date {
toString(): string;
setTime(time: number): number;
// ...
}
interface Date {
toString(): string;
setTime(time: number): number;
// ...
}