例如:
type Fn = (a: string, b: number) => void
我想要拿到a或b的类型,该怎么书写?
type Fn = (a: string, b: number) => void type FnParams = Parameters<Fn>
1 回答814 阅读✓ 已解决