import { IVtxcacheClear , IVtxcacheCreate , IVtxcacheReset , IVtxcacheSetData , IVtxcacheSetError , IVtxcacheSetRequired , VtxcacheActions , VtxcacheCb } from './actionTypes' ; export const VtxcacheClear = ( entity ) : IVtxcacheClear => ( { type : VtxcacheActions . VtxcacheClear , entity } ) ; export const VtxcacheCreate = < T = any > ( entity , signature , cb ) : IVtxcacheCreate => ( { type : VtxcacheActions . VtxcacheCreate , entity , signature , cb } ) ; export const VtxcacheSetData = < T = any > ( entity , signature , data , block ) : IVtxcacheSetData => ( { type : VtxcacheActions . VtxcacheSetData , entity , signature , data , block } ) ; export const VtxcacheSetRequired = ( entity , signature ) : IVtxcacheSetRequired => ( { type : VtxcacheActions . VtxcacheSetRequired , entity , signature } ) ; export const VtxcacheSetError = ( entity , signature , error , block ) : IVtxcacheSetError => ( { type : VtxcacheActions . VtxcacheSetError , entity , signature , error , block } ) ; export const VtxcacheReset = ( ) : IVtxcacheReset => ( { type : VtxcacheActions . VtxcacheReset } ) ;