Skip to main content

@log-right/base > IResult

IResult interfaceโ€‹

The base interface definition for the Result class

Signature:
export interface IResult<TReturned = any, TResultCallback = any, TValidate = any> extends Event 
Extends: Event

Propertiesโ€‹

PropertyTypeDescription
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
validateTValidateA function call to validate if the result is a success or failure