UNPKG

@jay-js/system

Version:

A powerful and flexible TypeScript library for UI, state management, lazy loading, routing and managing draggable elements in modern web applications.

10 lines (9 loc) 325 B
import type { TState } from "../types.js"; /** * Creates a reactive state container that can be subscribed to for changes * * @template T Type of the state data * @param data Initial value of the state * @returns A state object with methods to manage the state */ export declare const state: <T>(data: T) => TState<T>;