import { Action , InitializeVaultAction , SetVaultEntriesAction , AddVaultEntryAction , ClearVaultEntriesAction , ToggleBiometricUnlockAction , ToggleConcealTokensAction , } from './actions' ; export const isInitializeVaultAction = ( action ) : action is InitializeVaultAction => { return action . type === 'INITIALIZE_VAULT' ; } ; export const isSetVaultEntriesAction = ( action ) : action is SetVaultEntriesAction => { return action . type === 'SET_VAULT_ENTRIES' ; } ; export const isAddVaultEntryAction = ( action ) : action is AddVaultEntryAction => { return action . type === 'ADD_VAULT_ENTRY' ; } ; export const isClearVaultEntriesAction = ( action ) : action is ClearVaultEntriesAction => { return action . type === 'CLEAR_VAULT_ENTRIES' ; } ; export const isToggleBiometricUnlockAction = ( action ) : action is ToggleBiometricUnlockAction => { return action . type === 'TOGGLE_BIOMETRIC_UNLOCK' ; } ; export const isToggleConcealTokensAction = ( action ) : action is ToggleConcealTokensAction => { return action . type === 'TOGGLE_CONCEAL_TOKENS' ; } ;