function sum(a: number, b: number): number {
return a + b;
}
type Sum = (a: number, b: string) => string
function sum(a: number, b: number): number {
return a + b;
}
type Sum = (a: number, b: string) => string
本文标题:TypeScript 表示函数类型
本文链接:https://www.haomeiwen.com/subject/phjmyltx.html
网友评论