@log-right/base > CallbackFunction
CallbackFunction type​
The function definition for any implementations of callback
. This function is user-defined, and will be called when a specified result is called.
export declare type CallbackFunction<TReturned = unknown, TResult extends IResult<TReturned> = IResult<TReturned>, TReturnedCallback = unknown, TResultCallback extends IResult<TReturnedCallback> = IResult<TReturnedCallback>> = (result: TResult) => TResultCallback;