UNPKG

@modular-forms/preact

Version:

The modular and type-safe form library for Preact

10 lines (9 loc) 313 B
import type { ReadonlySignal, Signal } from '@preact/signals'; /** * 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>;