UNPKG

eco-state

Version:

Light Weight Asynchronous JavaScript Eco friendly State Management Library.

13 lines (10 loc) 430 B
import { stateType } from "./state"; type eventDataType = any | null; type completionCallbackType = Function | null | undefined; /** * Function to create events * @param {string} eventType * @param {any} eventData * @param {Function} completionCallback */ export declare async function eventCreator<stateType>(eventType: string, eventData: eventDataType, completionCallback: completionCallbackType): Promise<stateType>;