Repo: Incorporate void check into isNullableType? #8974
Labels
repo maintenance
things to do with maintenance of the repo, and not with code/docs
triage
Waiting for maintainers to take a look
Suggestion
In https://github.com/typescript-eslint/typescript-eslint/pull/8912/files#r1572612158, the
void
type is treated as a nullable type for the purposes of no-unnecessary-type-assertion, the same asnull
andundefined
would be. Consider whether checking for thevoid
type should be incorporated into the helper methodisNullableType
already used for checking for thenull
andundefined
type, and assess whether its impact on other rules that use that helper is a correct behavior change or not.The text was updated successfully, but these errors were encountered: