please have a look at code below:
enum ActionTypeEnum {
GET_WAREHOUSE_ITEM_LIST_INITIAL = 'GET_WAREHOUSE_ITEM_LIST_INITIAL',
GET_BASKET = 'GET_BASKET',
}
interface Action {
type: ActionTypeEnum,
}
export {ActionTypeEnum}; // works fine
export {Action}; //Cannot re-export a type when the '--isolatedModules' flag is provided.
As far as I understand it is possible to export ActionTypeEnum because it does not depend on anything.
As far as I understand it is not possible to export Action because it uses ActionTypeEnum and cannot be exported on it's own.
Please tell me how to export Action and if my understanding of the problem is correct.
Thank you! :-)