import { TValuePayload , TIndexPayload , TPayloadAction , TFetchRacesAligmentAction , TArchiveAction , TPathActionPayload , TRemoveArchivedAction } from '../store/types' ; export const saveForm = ( payload ) : TPayloadAction => ( { type : 'SAVE_FORM' , payload } ) ; export const resetForm = ( payload ) : TPayloadAction => ( { type : 'RESET_FORM' , payload } ) ; export const addIntoArray = ( payload ) : TPayloadAction => ( { type : 'SAVE_INDEXED_FORM_VALUE' , payload } ) ; export const putInArray = ( payload ) : TPayloadAction => ( { type : 'UPDATE_INDEXED_FORM_VALUE' , payload } ) ; export const removeFromArray = ( payload ) : TPayloadAction => ( { type : 'REMOVE_INDEXED_FORM_VALUE' , payload } ) ; export const fetchRacesAndAlignments = ( ) : TFetchRacesAligmentAction => ( { type : 'FETCH_RACES_ALIGNMENTS' } ) ; export const archiveForm = ( payload ) : TArchiveAction => ( { type : 'ARCHIVE_FORM' , payload } ) ; export const removeArchivedForm = ( payload ) : TRemoveArchivedAction => ( { type : 'REMOVE_ARCHIVED_FORM' , payload } ) ;