結果 : typescript make function generic