Use build in pino.pretty definitions

This commit is contained in:
Alex Mikhalev 2018-08-19 19:31:36 -06:00
parent 26e9b49499
commit c8dd1df615
2 changed files with 1 additions and 23 deletions

View File

@ -1,5 +1,5 @@
import chalk from "chalk";
import pretty = require("pino/pretty");
import { pretty } from "pino";
type Level = "default" | 60 | 50 | 40 | 30 | 20 | 10;

View File

@ -1,22 +0,0 @@
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;
}