Refactoring: Extract to interface #31640
Labels
Domain: Refactorings
e.g. extract to constant or function, rename symbol
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
The "extract to type alias" code fix is great, however, a lot of people (myself included) prefer
interface
s for object types rather than type aliases.Extract to interface should work only on an intersection type with some number of anonymous object types, named object types, and type references.
Examples
Related issues:
The text was updated successfully, but these errors were encountered: