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
But the err can also be null to indicate that the callback has no errors. If trying to invoke the callback with null or undefined, typescript complains with:
Argument of type 'null' is not assignable to parameter of type 'Error'.ts(2345)
Current type for
load
function'scb
is:But the err can also be
null
to indicate that the callback has no errors. If trying to invoke the callback withnull
orundefined
, typescript complains with:I think the type should be
See for example in node types package:
The text was updated successfully, but these errors were encountered: