UNPKG

@quirks/store

Version:
11 lines (10 loc) 411 B
import { AppState } from '../types'; import { StateCreator } from 'zustand/vanilla'; export interface SharedOptions { name: string; excluded: string[]; enabled?: boolean; } export type SharedType = <T extends AppState>(f: StateCreator<T, [], []>, options?: SharedOptions) => StateCreator<T, [], []>; export declare const defaultSharedOptions: SharedOptions; export declare const shared: SharedType;