Skip to content

Instantly share code, notes, and snippets.

@meshaabi
Created July 25, 2023 15:17
Show Gist options
  • Save meshaabi/f7133e37679b445abe1d1ca48407b3e3 to your computer and use it in GitHub Desktop.
Save meshaabi/f7133e37679b445abe1d1ca48407b3e3 to your computer and use it in GitHub Desktop.
import { SetState, GetState } from 'zustand';
import { StoresUseState } from './stores/types';
import { BasketUseState } from './basket/types';
import { CustomerUseState } from './customer/types';
import { AppUseState } from './app/types';
import { RemoteConfigUseState } from './remoteConfig/types';
export type AllStoreSlices = StoresUseState &
AppUseState &
RemoteConfigUseState &
CustomerUseState &
BasketUseState;
export type StoreSetState = SetState<AllStoreSlices>;
export type StoreGetState = GetState<AllStoreSlices>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment