Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ActionResult<T>

Result of running an action, optionally on a target. Instances may add further information beyond boolean success or failure. Useful when promise chaining, to allow results to be included along with the target.

Type parameters

  • T = undefined

Hierarchy

Index

Properties

Optional Readonly error

error: Error

Error that occurred, if any

Optional Readonly errorStep

errorStep: string

Description of step that errored, if one did.

Readonly success

success: boolean

Whether or not the action succeeded.

Readonly target

target: T

Target on which we ran the action, if there is one.

Generated using TypeDoc