LogoRobo.js
Framework

WatcherCallback()<V>

Type Alias: WatcherCallback()<V>

type WatcherCallback<V> = (oldValue, newValue) => void | Promise<void>;

Watcher callback signature. Receives (oldValue, newValue) for compatibility with existing code.

Type Parameters

Type ParameterDefault type
Vunknown

Parameters

ParameterType
oldValueV | undefined
newValueV | undefined

Returns

void | Promise<void>

On this page