Skip to main content

@log-right/base > FormatFunctionBase

FormatFunctionBase typeโ€‹

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

Signature:
export declare type FormatFunctionBase<TReturned = unknown, TResult extends IResult<TReturned> = IResult<TReturned>, TFormatted extends FormattedData = FormattedData, TReport extends Report<TFormatted> = Report<TFormatted>, TResultFormat extends IResult<TReport> = IResult<TReport>> = (result: TResult) => TResultFormat | TReport;
References: [IResult](/log-right/docs/base.iresult), [FormattedData](/log-right/docs/base.formatteddata), [Report](/log-right/docs/base.report)