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
Fiddled around with this one for a while to try and find something that worked, pretty annoying!
Sure wish they would build something like these predicates into the language.
But I think I found a solution. I haven't tested this with keyofStringsOnly turned off, since it's still on in my project, but strangely, keyof never === keyof any === string.
Thanks to @krisdages for finding this! This commit removes the `string`
condition on `IsNever` because `keyof never === keyof any === string`.
Closes: #109
Thanks to @krisdages for finding this! This commit removes the `string`
condition on `IsNever` because `keyof never === keyof any === string`.
Closes: #109
Fiddled around with this one for a while to try and find something that worked, pretty annoying!
Sure wish they would build something like these predicates into the language.
But I think I found a solution. I haven't tested this with keyofStringsOnly turned off, since it's still on in my project, but strangely,
keyof never === keyof any === string
.The text was updated successfully, but these errors were encountered: