Context

[ Interface ]

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

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.

Context 1:

Available from version 1.10