jkchao / typescript-book-chinese

TypeScript Deep Dive 中文版
https://jkchao.github.io/typescript-book-chinese/
MIT License
6.53k stars 673 forks source link

change ParamType return value #267

Closed Fa-haxiki closed 2 years ago

Fa-haxiki commented 2 years ago
interface User {
  name: string;
  age: number;
}

type Func = (user: User) => void;

type Param = ParamType<Func>;

Param返回的应该是一个[user: User]

jkchao commented 2 years ago

前面有个 pr 改了