diff --git a/test/types/pino-transport.test-d.ts b/test/types/pino-transport.test-d.ts index 8666846c3..33459bf31 100644 --- a/test/types/pino-transport.test-d.ts +++ b/test/types/pino-transport.test-d.ts @@ -74,6 +74,23 @@ expectType(pino({ }, })) +const transportsWithoutOptions = pino.transport({ + targets: [ + { target: '#pino/pretty' }, + { target: '#pino/file' } + ], levels: { foo: 35 } +}) +pino(transports) + +expectType(pino({ + transport: { + targets: [ + { target: '#pino/pretty' }, + { target: '#pino/file' } + ], levels: { foo: 35 } + }, +})) + const pipelineTransport = pino.transport({ pipeline: [{ target: './my-transform.js'