WatchCallback returns `void`, not `any`
This matches the [documentation](fe96839c9f/src/api/reactivity-core.md
?plain=1#L378-L382) and better expresses that the return value is (mostly) ignored.
This commit is contained in:
parent
201936f9a3
commit
09e84efe8c
|
@ -42,7 +42,7 @@ export type WatchCallback<V = any, OV = any> = (
|
|||
value: V,
|
||||
oldValue: OV,
|
||||
onCleanup: OnCleanup,
|
||||
) => any
|
||||
) => void
|
||||
|
||||
export type OnCleanup = (cleanupFn: () => void) => void
|
||||
|
||||
|
|
Loading…
Reference in New Issue