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
typeCreatedOrUpdatedAt={createdAt: Date|string}|{updatedAt: Date|string};constdatePropComp=<TextendsCreatedOrUpdatedAt,KextendskeyofT>(a: T,b: T,field: K)=>{// The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter.constdateA=a[field]instanceofDate ? a[field] : newDate(a[field]);constdateB=b[field]instanceofDate ? b[field] : newDate(b[field]);returndateA.getTime()-dateB.getTime();};datePropComp({updatedAt: Date()},{updatedAt: Date()},'updatedAt')
Reported by @yangchristian in #2775 (comment)
I repro @larsenwork's issue with the following:
Playground link
The text was updated successfully, but these errors were encountered: