Skip to content

watch

function watch<T>(
dep,
fn,
opts?): () => void;

Defined in: core/src/shared/signals/signal.ts:659

Type Parameter
T
Parameter Type
dep Signal<T>
fn (newValue, oldValue) => void
opts? WatchOptions
(): void;

void

function watch<T>(
dep,
fn,
opts?): () => void;

Defined in: core/src/shared/signals/signal.ts:664

Type Parameter
T
Parameter Type
dep Event<T>
fn (newValue, oldValue) => void
opts? WatchOptions
(): void;

void

function watch<T>(
dep,
fn,
opts?): () => void;

Defined in: core/src/shared/signals/signal.ts:669

Type Parameter
T
Parameter Type
dep () => T
fn (newValue, oldValue) => void
opts? WatchOptions
(): void;

void