Aller au contenu principal

log-more > ReportFunction

ReportFunction type​

The function definition for any implementations of Report. This function can be user-defined, and will be called when a specified result is called.

Signature:
export declare type ReportFunction<TReturned = unknown, TResult extends Result<TReturned> = Result<TReturned>, TReturnedReport = unknown, TResultReport extends Result<TReturnedReport> = Result<TReturnedReport>> = (result: TResult) => TResultReport;
References: [Result](/log-right/fr/docs/log-more.result)