I'd like to merge two separate enums for convenience.
export enum ActionTypes1 {
ClearError = 'CLEAR_ERROR',
PrependError = 'PREPEND_ERROR',
}
export enum ActionTypes2 {
IncrementCounter = 'INCREMENT_COUNTER',
}
Is it possible to call one enum to access the data from both?
e.g.
Foo.ClearError // works
Foo.IncrementCounter // works
For context I'm using the enum for function names. Replacing the enum with a constant breaks here:
// Error: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.
async [ActionTypes.IncrementCounter]({ commit }) {