結果 : typescript union type function parameter