这是一个异步值的接口,它包含了一个value字段和一个resolved字段 value字段表示异步操作的结果,resolved字段表示异步操作是否已经完成
Name |
---|
InputType |
MappedType |
AsyncErrorValue
<MappedType
>new AsyncMap<InputType
, MappedType
>(input
, mapper
, initialVal?
, scope?
)
Name |
---|
InputType |
MappedType |
Name | Type |
---|---|
input |
GetterOf <AsyncValue <InputType >> |
mapper |
MapperOf <[InputType ], Promise <MappedType >> |
initialVal? |
MappedType | typeof unresolvedFlag |
scope? |
Scope |
Private
Readonly
input: any
Private
Readonly
mapper: any
Private
reactionDisposer: any
Private
Readonly
scope: any
Private
setError: any
Private
setMapping: any
Private
setValue: any
Private
startObserving: any
Private
state: any
Private
stopObserving: any
Private
updateValue: any
get
error(): unknown
unknown
get
errored(): boolean
boolean
get
mapping(): boolean
boolean
get
resolved(): boolean
boolean
get
value(): MappedType
MappedType