ValueWithError type

發生錯誤的值結果。

type ValueWithError = { error: string, value: any }