dmeditor
Version:
dmeditor is a block-style visual editor. Data is in json format.
13 lines (12 loc) • 516 B
TypeScript
type State = {
id: string;
level: number;
value: string;
};
type Actions = {
headingStateChange: (type: keyof State, value: string) => void;
};
declare const useHeadingStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<State & Actions>, "setState"> & {
setState(nextStateOrUpdater: (State & Actions) | Partial<State & Actions> | ((state: import("immer").WritableDraft<State & Actions>) => void), shouldReplace?: boolean | undefined): void;
}>;
export default useHeadingStore;