LGTM.com - false positive - Typescript (infer T extends U)
pattern should be valid.
#9621
Labels
(infer T extends U)
pattern should be valid.
#9621
Description of the false positive
This alert is flagging a missing
?
in a(infer T extends Value)
TypeScript pattern, likely expecting theextends
keyword to be part of a ternaryextends Value ? … : …
construction.The
infer T extends Value
pattern is valid TypeScript that I was told to use as a workaround to a TS error, see this TS issue.So, I guess this should be considered as valid syntax.
URL to the alert on the project page on LGTM.com
(tried to, but the alert is currently on a branch and I couldn't find how to tell LGTM.com to hook up on a branch rather than the latest released version 😕 )
The text was updated successfully, but these errors were encountered: