import {
  ReduxActionContextDecorator,
  ReduxActionContextDecoratorConfig,
  ReduxActionDecorator,
  ReduxActionDecoratorConfig,
  ReduxReducerDecorator,
  ReduxReducerDecoratorConfig,
  ReduxStateDecorator,
  ReduxStateDecoratorConfig,
} from '@harmowatch/redux-decorators';
import { MethodType } from '@harmowatch/redux-decorators/lib/generic/generic-decorator';

export * from './redux-select.decorator';

export function ReduxAction(config?: ReduxActionDecoratorConfig): MethodType<Function> {
  return ReduxActionDecorator.forMethod(config);
}

export function ReduxActionContext(config?: ReduxActionContextDecoratorConfig) {
  return ReduxActionContextDecorator.forClass(config);
}

export function ReduxState(config?: ReduxStateDecoratorConfig) {
  return ReduxStateDecorator.forClass(config);
}

export function ReduxReducer(config?: ReduxReducerDecoratorConfig) {
  return ReduxReducerDecorator.forMethod(config);
}

import {
  ReduxActionContextDecorator,
  ReduxActionDecorator,
  ReduxReducerDecorator,
  ReduxStateDecorator,
} from '@harmowatch/redux-decorators';

export * from './redux-select.decorator';

export const ReduxAction = ReduxActionDecorator.forMethod;
export const ReduxActionContext = ReduxActionContextDecorator.forClass;
export const ReduxState = ReduxStateDecorator.forClass;
export const ReduxReducer = ReduxReducerDecorator.forMethod;

Revert "try to export alias function to avoid angulars compiler issue "Only initialized variables and constants can be referenced in decorators ...""
Revert "try to export alias function to avoid angulars compiler issue "Only initialized variables and constants can be referenced in decorators ...""

This reverts commit ab01c7c
