Skip to content

Refactoring: Extract Type #24017

Closed
Closed
@DanielRosenwasser

Description

@DanielRosenwasser

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

  • an interface if given a type literal or
  • a type alias otherwise

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.

extracttypealias

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions