結果 : typescript extend type with function