vue-lynx / watch

Function: watch()

watch(source, cb, options)

function watch<T, Immediate>(
   source, 
   cb, 
   options?): WatchHandle

Type Parameters

Type ParameterDefault type
T-
Immediate extends Readonly<boolean>false

Parameters

ParameterType
sourceWatchSource<T>
cbWatchCallback<T, MaybeUndefined<T, Immediate>>
options?WatchOptions<Immediate>

Returns

WatchHandle

Defined in

node_modules/.pnpm/@vue+runtime-core@3.5.30/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1498

watch(sources, cb, options)

function watch<T, Immediate>(
   sources, 
   cb, 
   options?): WatchHandle

Type Parameters

Type ParameterDefault type
T extends readonly (object | WatchSource<unknown>)[]-
Immediate extends Readonly<boolean>false

Parameters

ParameterType
sourcesT | readonly [T]
cb[T] extends [ReactiveMarker] ? WatchCallback<T<T>, MaybeUndefined<T<T>, Immediate>> : WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>
options?WatchOptions<Immediate>

Returns

WatchHandle

Defined in

node_modules/.pnpm/@vue+runtime-core@3.5.30/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1499

watch(sources, cb, options)

function watch<T, Immediate>(
   sources, 
   cb, 
   options?): WatchHandle

Type Parameters

Type ParameterDefault type
T extends MultiWatchSources-
Immediate extends Readonly<boolean>false

Parameters

ParameterType
sources[...T[]]
cbWatchCallback<MapSources<T, false>, MapSources<T, Immediate>>
options?WatchOptions<Immediate>

Returns

WatchHandle

Defined in

node_modules/.pnpm/@vue+runtime-core@3.5.30/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1500

watch(source, cb, options)

function watch<T, Immediate>(
   source, 
   cb, 
   options?): WatchHandle

Type Parameters

Type ParameterDefault type
T extends object-
Immediate extends Readonly<boolean>false

Parameters

ParameterType
sourceT
cbWatchCallback<T, MaybeUndefined<T, Immediate>>
options?WatchOptions<Immediate>

Returns

WatchHandle

Defined in

node_modules/.pnpm/@vue+runtime-core@3.5.30/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1501