23 lines
446 B
TypeScript
Raw Normal View History

2017-09-26 12:43:25 -06:00
declare module "pino/pretty" {
import { Transform } from "stream";
interface Formatter {
(value: any): string;
}
interface PrettyOptions {
timeTransOnly?: boolean;
formatter?: Formatter;
levelFirst?: boolean;
messageKey?: string;
forceColor?: boolean;
}
interface Pretty {
(opts: PrettyOptions): Transform;
}
const pretty: Pretty;
export = pretty;
}