-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring: Extract Type #24017
Labels
Duplicate
An existing issue was already created
Comments
DanielRosenwasser
added
Suggestion
An idea for TypeScript
Domain: Refactorings
e.g. extract to constant or function, rename symbol
labels
May 10, 2018
👍 a useful feature |
Duplicate of #23869 |
mhegazy
added
Duplicate
An existing issue was already created
and removed
Domain: Refactorings
e.g. extract to constant or function, rename symbol
Suggestion
An idea for TypeScript
labels
May 10, 2018
Mine is better. It has a GIF. |
mine now has the GIF 😛 |
Thief! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Background
I hate offhandedly writing a type out in one location that I'll need to cut/paste later.
Proposal
Given a selected type segment, provide the ability to extract that type into
in any scope where each captured type is available.
Optionally, a parameterized type alias can be made available in scopes where captured types are not available.
The text was updated successfully, but these errors were encountered: