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