UNPKG

@renewx/core

Version:

Lightweight state management library with validation support

6 lines (5 loc) 293 B
import type { Cleaner, Off } from "../types/cleaner"; import type { HasStore } from "../types/has-store"; export declare const creator: <Args extends unknown[], Type extends HasStore>(fn: (cleaner: Cleaner, ...v: Args) => Type & { readonly off?: never; }) => ((...v: Args) => Type & Off);