diff --git a/pino.d.ts b/pino.d.ts index 285c4b3b2..367cdd870 100644 --- a/pino.d.ts +++ b/pino.d.ts @@ -629,6 +629,11 @@ declare namespace pino { * Optional child creation callback. */ onChild?: OnChildCallback; + + /** + * logs newline delimited JSON with `\r\n` instead of `\n`. Default: `false`. + */ + crlf?: boolean; } interface ChildLoggerOptions { diff --git a/test/types/pino.test-d.ts b/test/types/pino.test-d.ts index 9d4189200..dbfd0852d 100644 --- a/test/types/pino.test-d.ts +++ b/test/types/pino.test-d.ts @@ -325,3 +325,7 @@ const withChildCallback = pino({ }) withChildCallback.onChild = (child: Logger) => {} +pino({ + crlf: true, +}); +