Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

289 B
Raw Blame
import type { StoreApi } from 'zustand';

export interface StoreApiWithSelector<Store> extends Omit<StoreApi<Store>, 'subscribe'> {
  subscribe: <T extends keyof Store>(
    selector: (state: Store, prevState: Store) => void,
    listener?: (state: Store[T]) => void,
  ) => () => void;
}