/** * OnError hook. */ export interface OnError { /** * OnError hook is used to override the default behaviour in case error is thrown. * @returns {any | Promise} */ onError(): any | Promise; }