ligo/tools/webide/packages/client/src/redux/app.ts

45 lines
1.2 KiB
TypeScript
Raw Normal View History

import { combineReducers } from 'redux';
import command, { CommandState } from './command';
import compile, { CompileState } from './compile';
import deploy, { DeployState } from './deploy';
import dryRun, { DryRunState } from './dry-run';
import editor, { EditorState } from './editor';
import evaluateFunction, { EvaluateFunctionState } from './evaluate-function';
import evaluateValue, { EvaluateValueState } from './evaluate-value';
import examples, { ExamplesState } from './examples';
2020-03-13 00:26:13 +04:00
import generateCommand, { GenerateCommandState } from './generate-command';
import loading, { LoadingState } from './loading';
import result, { ResultState } from './result';
import share, { ShareState } from './share';
export interface AppState {
editor: EditorState;
share: ShareState;
compile: CompileState;
dryRun: DryRunState;
deploy: DeployState;
evaluateFunction: EvaluateFunctionState;
evaluateValue: EvaluateValueState;
2020-03-13 00:26:13 +04:00
generateCommand: GenerateCommandState;
result: ResultState;
command: CommandState;
examples: ExamplesState;
loading: LoadingState;
}
export default combineReducers({
editor,
share,
compile,
dryRun,
deploy,
evaluateFunction,
evaluateValue,
2020-03-13 00:26:13 +04:00
generateCommand,
result,
command,
examples,
loading
});