Aller au contenu principal

@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.

Signature:
export declare type CallbackFunction<TReturned = unknown, TResult extends IResult<TReturned> = IResult<TReturned>, TReturnedCallback = unknown, TResultCallback extends IResult<TReturnedCallback> = IResult<TReturnedCallback>> = (result: TResult) => TResultCallback;
References: [IResult](/log-right/fr/docs/base.iresult)