結果 : typescript handle error type