This topic created in 1058 days ago, the information mentioned may be changed or developed.
2 replies • 2023-06-05 22:55:58 +08:00
 |
|
1
MozzieW Jun 5, 2023
也不是说描述不清楚,但是建议加上用例、场景。
听起来像是:泛型?
|
 |
|
2
Danswerme Jun 5, 2023
这样?
interface SomeFn<T, R> { (params: T): R }
const fn: SomeFn<string, number> = (a) => Number(a);
|