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
In a TypeScript type, keyof T[] is the same as number (I think). The user likely meant (keyof T)[]. We should emit a warning, telling them to write either number or add parentheses.
In a TypeScript type,
keyof T[]
is the same asnumber
(I think). The user likely meant(keyof T)[]
. We should emit a warning, telling them to write eithernumber
or add parentheses.Inspired by this article: https://www.totaltypescript.com/array-types-in-typescript
The text was updated successfully, but these errors were encountered: