UNPKG

@vaadin/hilla-react-signals

Version:

Signals for Hilla React

13 lines (12 loc) 512 B
import { type StateEvent } from './events.js'; import { $processServerResponse, FullStackSignal, type Operation } from './FullStackSignal.js'; export interface OperationSubscription extends Operation { cancel(): void; } export declare class ValueSignal<T> extends FullStackSignal<T> { #private; set(value: T): Operation; replace(expected: T, newValue: T): Operation; update(callback: (value: T) => T): OperationSubscription; protected [$processServerResponse](event: StateEvent): void; }