結果 : typescript infer type from function parameter