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
@mrazauskas Technically both keyof never and keyof any resolve to string | number | symbol. Not sure if it would be the best idea to stray away from TypeScript's intended behavior but you're right. Semantically it doesn't make sense. It seems like keyof never should be never. Not sure what the best approach here would be to be honest.
Playground link
.toHaveProperty()
does not distinguish betweenany
andnever
. See the link above.It sound like
never
should not have any properties. Might be I missed something.The text was updated successfully, but these errors were encountered: