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
Typescript complains about the getTime call saying This expression is not callable. Type '{}' has no call signatures.ts(2349) and when I hover over it, getTime is defined as an object and not a function anymore.
My workaround is to cast it to Date, but something seems to have gone wrong with this return type. Seems like having TimeReply extend Date isn't working correctly in Typescript?
Environment:
Typescript Version: 4.4.4
Node.js Version: 12.20.8
Redis Server Version: N/A
Node Redis Version: 4.0.2
Platform: Mac OS 11.6.2
The text was updated successfully, but these errors were encountered:
When I updated our codebase to 4.0.2, one piece of code broke:
Typescript complains about the
getTime
call sayingThis expression is not callable. Type '{}' has no call signatures.ts(2349)
and when I hover over it,getTime
is defined as an object and not a function anymore.My workaround is to cast it to
Date
, but something seems to have gone wrong with this return type. Seems like havingTimeReply
extendDate
isn't working correctly in Typescript?Environment:
The text was updated successfully, but these errors were encountered: