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