Add typescript paths to top level folders
[arvados-workbench2.git] / src / store / tree-picker / tree-picker-actions.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { default as unionize, ofType, UnionOf } from "unionize";
6 import { TreePickerNode } from "./tree-picker";
7
8 export const treePickerActions = unionize({
9     LOAD_TREE_PICKER_NODE: ofType<{ id: string }>(),
10     LOAD_TREE_PICKER_NODE_SUCCESS: ofType<{ id: string, nodes: Array<TreePickerNode> }>(),
11     TOGGLE_TREE_PICKER_NODE_COLLAPSE: ofType<{ id: string }>(),
12     TOGGLE_TREE_PICKER_NODE_SELECT: ofType<{ id: string }>()
13 }, {
14         tag: 'type',
15         value: 'payload'
16     });
17
18 export type TreePickerAction = UnionOf<typeof treePickerActions>;