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
When creating a child logger, looks like it isn't receiving all types from parent instance when the child method is called without any additional options, despite the call for custom levels being typed correctly.
I tried adding a default type for this generic as a {} and it solved the problem. I suspect that the Options & ChildOptions ends in { ... } & undefined which evaluates to never 🤔
Not 100% sure if this is the expected solution, but I'd be happy to work on a PR
The text was updated successfully, but these errors were encountered:
When creating a child logger, looks like it isn't receiving all types from parent instance when the
child
method is called without any additionaloptions
, despite the call for custom levels being typed correctly.I made a small code to reproduce the error here https://codesandbox.io/s/tender-river-42vrrt?file=/src/index.ts
But this is the code too, for a quick look
I tried adding a default type for this generic as a
{}
and it solved the problem. I suspect that theOptions & ChildOptions
ends in{ ... } & undefined
which evaluates tonever
🤔Not 100% sure if this is the expected solution, but I'd be happy to work on a PR
The text was updated successfully, but these errors were encountered: