diff --git a/types/pino/index.d.ts b/types/pino/index.d.ts index ae7e9da522a451..61ef9db19f28ca 100644 --- a/types/pino/index.d.ts +++ b/types/pino/index.d.ts @@ -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`. */ diff --git a/types/pino/pino-tests.ts b/types/pino/pino-tests.ts index 1a64f11d99158e..5c87a24ece1ec2 100644 --- a/types/pino/pino-tests.ts +++ b/types/pino/pino-tests.ts @@ -133,6 +133,7 @@ const pretty = pino({ errorProps: '', levelFirst: false, messageKey: 'msg', + timestampKey: "timestamp", translateTime: 'UTC:h:MM:ss TT Z', search: 'foo == `bar`' }