import { CALL, FORK, REDUCE, CANCEL, SELECT } from './CommandTypes';

export function select(selector = (state) => state) {
  return { type: SELECT, selector };
};

export function reduce(reducer) {
  return { type: REDUCE, reducer };
};

export function call(fn, ...args) {
  return { type: CALL, fn, args };
};

export function fork(actionCreator, ...args) {
  return { type: FORK, actionCreator, args };
};

export function cancel(actionId) {
  return { type: CANCEL, actionId };
};



import { CALL, FORK, REDUCE, CANCEL, SELECT } from './CommandTypes';

export function select(selector = (state) => state) {
  return { type: SELECT, selector };
};

export function reduce(reducer) {
  return { type: REDUCE, reducer };
};

export function call(fn, ...args) {
  return { type: CALL, fn, args };
};

export function fork(actionCreator, ...args) {
  return { type: FORK, actionCreator, args };
};

export function cancel(actionId) {
  return { type: CANCEL, actionId };
};

Remove empty lines