typescript function specify arg type when using code example
Example: typescript function type
interface Date {
toString(): string;
setTime(time: number): number;
// ...
}
interface Date {
toString(): string;
setTime(time: number): number;
// ...
}