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
This code makes the TS compiler scream because because "LoggerOptions" has no "hello" key (the exact error is Argument of type '{ hello: number; }' is not assignable to parameter of type 'LoggerOptions | DestinationStream | undefined'). I think this is the correct behavior.
On the other hand this code doesn't seem to raise any error, i.e. if the object passed as a parameter contains at least one legit key no exception is raised. Is this intended behavior?
This code makes the TS compiler scream because because "LoggerOptions" has no "hello" key (the exact error is
Argument of type '{ hello: number; }' is not assignable to parameter of type 'LoggerOptions | DestinationStream | undefined'
). I think this is the correct behavior.On the other hand this code doesn't seem to raise any error, i.e. if the object passed as a parameter contains at least one legit key no exception is raised. Is this intended behavior?
The text was updated successfully, but these errors were encountered: