关于TS类型推导中结果中,函数参数的类型问题? 链接在这里:[https://tsplay.dev/mxE51W](https://link.segmentfault.com/?enc=vwEWE1aw4yxy3bXKv8pMlg%3D%3D.YtARn0RiirMxN%2FTZoxHn0aJVJ3g4aoIPa6pnUQzOIZc%3D) type ClassNamesUtil = (value: string) => string; type ClassNames = (value: number) => string; interface WraperProps { styles: T; cx: T extends string ? ClassNamesUtil : ClassNames; } function action({ styles, cx }: WraperProps) { console.log(styles, cx('a')); } 问题是: 1. 为什么在`action`中,调用`cx('a')`的时候,参数类型是`never`呢? 2. 如何让`cx`根据传入的泛型`T`来决定接受的类型呢? 