UNPKG

@modular-forms/react

Version:

The modular and type-safe form library for React

10 lines (9 loc) 319 B
import type { ReadonlySignal, Signal } from '@preact/signals-react'; /** * Signal hook that updates when the reference of the value argument changes. * * @param value A signal that may change. * * @returns A readonly signal. */ export declare function useLiveSignal<T = any>(value: Signal<T>): ReadonlySignal<T>;