TS 泛型 箭头函数写法
Jul 2, 2022
4 min read
const
fn
=
<
T
extends
{}
>
(
x
:
T
)
:
T
=>
{
return
x
}