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
TypeScript uses the constraint of a type parameter if it cannot be inferred and has no default. no-uninferred-type-parameter currently only checks for the implicit constraint ({} or unknown as of ts3.5).
It should be able to tell if a type parameter with constraint cannot be inferred. That will also fix false-positives where the inferred type equals the implicit constraint.
This is a bit more involved:
type parameter has no default
inferred type equals constraint
there's nothing the type parameter could be inferred from
optional parameter not provided
optional property not present or no property matching index signature
TypeScript uses the constraint of a type parameter if it cannot be inferred and has no default.
no-uninferred-type-parameter
currently only checks for the implicit constraint ({}
orunknown
as of ts3.5).It should be able to tell if a type parameter with constraint cannot be inferred. That will also fix false-positives where the inferred type equals the implicit constraint.
This is a bit more involved:
The text was updated successfully, but these errors were encountered: