Unnecessary conditional, the types have no overlap. #7007
Replies: 1 comment
-
👋 The Technical Discussions category of our GitHub Discussions is meant for "talking about the architecture and/or APIs of typescript-eslint". Please use GitHub Issues if you believe this is a bug in our end, or either StackOverflow our new Discord if you just have a general question. Tip: your code sample doesn't include all the types we'd need to understand your code. When asking for help (in addition to reading contributing guidelines explaining where to direct different types of queries), be sure to always include enough information to fully understand your question. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I receive the following lint error
Unnecessary conditional, the types have no overlap.
while trying to type narrowAccessTokenResponse
toAccessTokenResponseSuccess
. This is a method the TypeScript team has documented in theirNarrowing
documentation. Is it possible that this is a mistake on the linter?Beta Was this translation helpful? Give feedback.
All reactions