Context

[ Interface ]

export interface Context<T1 = any> {
   success?: ((result?: T1) => void);
   error?: ((
      error: Errors,
      details?: IErrorDetails
   ) => void;
   args?: any[];
);

Properties

Name

Type

Description

success [ optional ]

(result?: any) => void

Function for confirming success. Any return value can be transferred. Available in asynchronous context objects.

error [ optional ]

(error:Errors, details?: IErrorDetails) => void

Function for reporting errors. An arbitrary error value and optional details about the error must be transferred in the form of an IErrorDetails object. Available in asynchronous context objects.

args [ optional ]

any[]

Contains event arguments if this context is part of an event trigger.

Context 1:

Available from version 1.10