Aller au contenu principal

log-more > CaptureFunction

CaptureFunction type​

The function definition for any implementations of capture. Custom user-defined methods should be sure to align with this.

Signature:
export declare type CaptureFunction<TFormatted extends FormattedData = FormattedData, TReport extends Report<TFormatted> = Report<TFormatted>, TReturnedCapture = unknown, TResultCapture extends Result<TReturnedCapture> = Result<TReturnedCapture>> = CaptureFunctionBase<TFormatted, TReport, TReturnedCapture, TResultCapture>;
References: [Result](/log-right/fr/docs/log-more.result)