piral-core
Version:
The core library for creating a Piral instance.
5 lines (4 loc) • 351 B
TypeScript
import { UseBoundStore } from 'zustand';
import { EventEmitter, GlobalState, GlobalStateContext, PiralDefineActions } from '../types';
export declare function includeActions(ctx: GlobalStateContext, actions: PiralDefineActions): void;
export declare function createActions(state: UseBoundStore<GlobalState>, events: EventEmitter): GlobalStateContext;