PendingInteraction<TData, TResult>
PendingInteraction<
TData,TResult> =object
Defined in: src/react/useUIInteraction.ts:21
Represents a pending user interaction that needs to be resolved
Type Parameters
| Type Parameter | Default type |
|---|---|
|
|
|
|
|
|
Properties
createdAt
createdAt:
number
Defined in: src/react/useUIInteraction.ts:27
data
data:
TData
Defined in: src/react/useUIInteraction.ts:24
id
id:
string
Defined in: src/react/useUIInteraction.ts:22
reject()
reject: (
error:Error) =>void
Defined in: src/react/useUIInteraction.ts:26
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
void
replacesInteractionId?
optionalreplacesInteractionId:string
Defined in: src/react/useUIInteraction.ts:33
If set, this interaction replaces a previous one (e.g. an updated app)
resolve()
resolve: (
result:TResult) =>void
Defined in: src/react/useUIInteraction.ts:25
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
void
resolved?
optionalresolved:boolean
Defined in: src/react/useUIInteraction.ts:28
result?
optionalresult:TResult
Defined in: src/react/useUIInteraction.ts:29
toolVersion?
optionaltoolVersion:number
Defined in: src/react/useUIInteraction.ts:31
Version of the display tool that produced this interaction (for migration on restore)
type
type:
InteractionType
Defined in: src/react/useUIInteraction.ts:23