ValueWithError type

具有错误的值结果。

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