UNPKG

@modular-forms/solid

Version:

The modular and type-safe form library for SolidJS

14 lines (13 loc) 358 B
import type { Accessor, Setter } from 'solid-js'; /** * Value type of signal object. */ export type Signal<T> = { get: Accessor<T>; set: Setter<T>; }; /** * Creates a simple reactive state with a getter and setter. */ export declare function createSignal<T>(): Signal<T | undefined>; export declare function createSignal<T>(value: T): Signal<T>;