ValueWithError type

エラーが発生した値の結果。

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