You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 7, 2022. It is now read-only.
[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
When creating PinoLogger instance and pass them to the FastifyAdapter in strict mode it throws the error
error TS2322: Type 'PinoLogger' is not assignable to type 'boolean | FastifyLoggerInstance | FastifyLoggerOptions<any, IncomingMessage | Http2ServerRequest, ServerResponse | Http2ServerResponse> | undefined'.
Type 'PinoLogger' is not assignable to type 'FastifyLoggerInstance'.
Types of property 'warn' are incompatible.
Type '(msgOrObject: unknown, context?: string | undefined) => void' is not assignable to type 'FastifyLogFn'.
Types of parameters 'context' and 'args' are incompatible.
Type 'unknown' is not assignable to type 'string | undefined'.
Type 'unknown' is not assignable to type 'string'.
72 logger: pinoLogger,
Expected behavior
Do not fail when I'm trying to pass pino logger to fastify adapter
Minimal reproduction of the problem with instructions
I'm submitting a...
Current behavior
When creating
PinoLogger
instance and pass them to theFastifyAdapter
instrict
mode it throws the errorExpected behavior
Do not fail when I'm trying to pass pino logger to fastify adapter
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: