TypescriptのGenerics functionの定義
関数
function
test
<
T
>(
x: T
)
{
return
x }
アロー関数
const
test = <T>(x: T):
T
=>
x