rescript-lang/rescript-vscode
Feature request: Code action to convert type to module
オープン
#430 opened on 2022/05/27
enhancementgood first issuehelp wanted
Repository metrics
- Stars
- (350 個のスター)
- PR merge metrics
- (30d に merged PR はありません)
説明
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 | Unread | Read
to
module ReadState = {
type t = New | Unread | Read
}
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).