You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the CommandAction is an enum, which is too generic and it holds all CommandAction values. My proposal is to add specific enums for each module: enum FieldsCommandAction, enum QueryCommandAction etc. This will provide more clarity from where the actions are raised. If the action is raised from Fields, then the enum should be Fields.
So with this ticket introduce the domain specific enums and refactor the CommandAction to this: export type CommandAction = QueryCommandAction | FieldsCommandAction | IndexesCommandAction; etc.
Currently, the
CommandAction
is an enum, which is too generic and it holds all CommandAction values. My proposal is to add specific enums for each module:enum FieldsCommandAction
,enum QueryCommandAction
etc. This will provide more clarity from where the actions are raised. If the action is raised from Fields, then the enum should be Fields.So with this ticket introduce the domain specific enums and refactor the
CommandAction
to this:export type CommandAction = QueryCommandAction | FieldsCommandAction | IndexesCommandAction;
etc.@PauliusKu
The text was updated successfully, but these errors were encountered: