Skip to content

Commit

Permalink
fix: make transports.options and transports.level optional
Browse files Browse the repository at this point in the history
According to https://github.com/pinojs/pino/blob/HEAD/docs/transports.md#v7-transports, the options and level are non-required properties for a transport
  • Loading branch information
krosenk729 authored Oct 17, 2023
1 parent 3526e0a commit 0b92542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pino.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ declare namespace pino {

interface TransportTargetOptions<TransportOptions = Record<string, any>> {
target: string
options: TransportOptions
level: LevelWithSilentOrString
options?: TransportOptions
level?: LevelWithSilentOrString
}

interface TransportBaseOptions<TransportOptions = Record<string, any>> {
Expand Down

0 comments on commit 0b92542

Please sign in to comment.