Skip to content

Consider making implicit any the default for all generic type parameters #13609

Closed

Description

Now that we have generic defaults (:tada:), we should consider making all type parameters have an implicit any default. An unspecified uninferred type parameter would have type any and trigger a warning under noImplicitAny.

Benefits:

  • We'll need to do this in Salsa anyway
  • Improves JS migration story for codebases which inherit from generic base classes

Drawbacks:

  • There may exist people who run with noImplicitAny off but still want to enforce type parameters to be provided?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

CommittedThe team has roadmapped this issueSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions