mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #47054 [@types/pino-http] Add wrapSerializers option by @ikottman
This commit is contained in:
parent
06e6094959
commit
f03d6da5b9
1
types/pino-http/index.d.ts
vendored
1
types/pino-http/index.d.ts
vendored
@ -34,6 +34,7 @@ declare namespace PinoHttp {
|
||||
customSuccessMessage?: (res: ServerResponse) => string;
|
||||
customErrorMessage?: (error: Error, res: ServerResponse) => string;
|
||||
customAttributeKeys?: CustomAttributeKeys;
|
||||
wrapSerializers?: boolean;
|
||||
reqCustomProps?: (req: IncomingMessage) => object;
|
||||
}
|
||||
|
||||
|
||||
@ -31,4 +31,5 @@ pinoHttp({ customAttributeKeys: { responseTime: 'responseTime' } });
|
||||
pinoHttp({ customAttributeKeys: { req: 'req', res: 'res', err: 'err', responseTime: 'responseTime' } });
|
||||
pinoHttp({ customLogLevel: (req, res) => 'info' });
|
||||
pinoHttp({ reqCustomProps: req => ({ key1: 'value1', 'x-key-2': 'value2' }) });
|
||||
pinoHttp({ wrapSerializers: false });
|
||||
pinoHttp(new Writable());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user