react-palm
Version:
Elm-like architecture for React apps
44 lines (41 loc) • 779 B
Flow
// @flow
import {
all,
allSettled,
fromCallback,
fromPromise,
fromPromiseWithProgress
} from './core';
export {reportTasksForTesting} from './core';
export type {
Task,
TaskCreator,
AnyTask,
AnyTasks,
MixedTask,
MixedTasks,
EffectReport
} from './core';
export {taskCreator} from './legacy';
export {
taskMiddleware,
withTask,
withTasks,
disableStackCapturing
} from './redux';
export {getGlobalTaskQueue} from './global';
// In the future, test utils will not be exported from
// this main bundle
export * from './test-utils';
// This default export provides a nice alias:
// ```
// import Task from 'react-palm/tasks';
// Task.all([...])
// ```
export default {
all,
allSettled,
fromCallback,
fromPromise,
fromPromiseWithProgress
};