在2.8 版本中,TypeScript 内置了一些与 infer 有关的映射类型:. 用于提取函数类型的返回值类型:. type ReturnType<T> = T extends (...args: ...
確定! 回上一頁