UNPKG

@renewx/core

Version:

Lightweight state management library with validation support

7 lines (6 loc) 457 B
import type { StoreID } from "./types/id"; import type { AnyStoreName } from "./types/name"; import type { ReadableTag } from "./types/tag"; import type { ReadOnlyStore } from "./types/read-only-store"; import type { Freeze } from "./types/freeze"; export declare const readOnlyStore: <State, TagType extends ReadableTag>(initState: Freeze<State>, storeName: string, name: (storeID: StoreID) => AnyStoreName, tag: TagType) => ReadOnlyStore<State, TagType>;