Skip to content

Feature request: Code action to convert type to module  #430

@fhammerschmidt

Description

@fhammerschmidt

It's pretty common in ReScript that you want to add some method to a type and thus want to restructure it into its own submodule.

E.g.

type readState = New | UnreadRead

to

module ReadState = {
  type t = New | UnreadRead
}

I am not sure though, if we should deliberately not allow this action on types named t (which are supposedly already in their own module).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions