UNPKG

@renewx/core

Version:

Lightweight state management library with validation support

6 lines (5 loc) 397 B
import type { ToReadOnly, WritableTag } from "./types/tag"; import type { ReadOnlyStore } from "./types/read-only-store"; import type { ActionStore } from "./types/action-store"; import type { Config } from "./types/config"; export declare const actionStore: <State, TagType extends WritableTag>(readOnly: ReadOnlyStore<State, ToReadOnly<TagType>>, config: Config) => ActionStore<State, TagType>;