infer 这里介绍的例子有错误吗?

作者: xiaobaichiliangpi创建于 2021年7月8日更新于 2022年11月11日

`interface User { name: string; age: number; }

type Func = (user: User) => void; type Param = ParamType; // Param = User type AA = ParamType; // string

内容来源: jkchao/typescript-book-chinese