mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[@types/pino] Document new config option (#35757)
* Document new config option (implemented in https://github.com/pinojs/pino-pretty/pull/67) * Fix indentation to be consistent
This commit is contained in:
parent
12207c4a9d
commit
001ee994e3
4
types/pino/index.d.ts
vendored
4
types/pino/index.d.ts
vendored
@ -259,6 +259,10 @@ declare namespace P {
|
||||
* The key in the JSON object to use as the highlighted message. Default: "msg".
|
||||
*/
|
||||
messageKey?: string;
|
||||
/**
|
||||
* The key in the JSON object to use for timestamp display. Default: "time".
|
||||
*/
|
||||
timestampKey?: string;
|
||||
/**
|
||||
* If set to true, will add color information to the formatted output message. Default: `false`.
|
||||
*/
|
||||
|
||||
@ -133,6 +133,7 @@ const pretty = pino({
|
||||
errorProps: '',
|
||||
levelFirst: false,
|
||||
messageKey: 'msg',
|
||||
timestampKey: "timestamp",
|
||||
translateTime: 'UTC:h:MM:ss TT Z',
|
||||
search: 'foo == `bar`'
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user