stringiful
Version:
Easy to use stringify function with built-in configurable formatters
15 lines • 515 B
TypeScript
import { ObjectFormatter, formatFunction } from '../interface';
declare type errorParams = {
maxMessageLength: number;
};
interface IErrorFormatterConfig {
matches: 'error';
params?: errorParams;
format?: formatFunction;
fieldsWhitelist?: string[];
fieldsBlacklist?: string[];
}
export declare type ErrorFormatterConfig = IErrorFormatterConfig;
export declare const getErrorFormatter: (formatterConfig: ErrorFormatterConfig) => ObjectFormatter;
export {};
//# sourceMappingURL=error.d.ts.map