import { action } from "typesafe-actions" ; import { CHANGE_SELECTED_KEY , CHANGE_CHECKED_KEYS , SELECT_FILES , SET_SELECTED_FILENAME , UPDATE_TREE , CHANGE_FAILUREEYS } from "../constants/file" ; import { IFileNode } from "@types" ; export const changeSelected = ( selectedKey ) => action ( CHANGE_SELECTED_KEY , selectedKey ) ; export const changeChecked = ( checkedKeys ) => action ( CHANGE_CHECKED_KEYS , checkedKeys ) ; export const selectFiles = ( tree ) => action ( SELECT_FILES , tree ) ; export const setSelectedFilename = ( value ) => action ( SET_SELECTED_FILENAME , value ) ; export const updateTree = ( tree ) => action ( UPDATE_TREE , tree ) ; export const changeFailureKeys = ( keys ) => action ( CHANGE_FAILUREEYS , keys ) ; export default { ... changeChecked } ;