結果 : typescript declare function with generic type