IResult interfaceโ
The base interface definition for the Result class
export interface IResult<TReturned = any, TResultCallback = any, TValidate = any> extends Event
Propertiesโ
| Property | Type | Description |
|---|---|---|
| callback? | CallbackFunction<TReturned, IResult<TReturned>, TResultCallback, IResult<TResultCallback>> | (Optional) This function is user-defined, and will be called when a specified result is called |
| data? | TReturned | (Optional) A field containing any values returned from the function call |
| instanceId? | string | (Optional) A string ID used in identifying if the object is a result |
| isValidated? | boolean | null | (Optional) An indicator specifying the last results of isValidated. If it has not been validated yet, return null |
| validate | TValidate | A function call to validate if the result is a success or failure |