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:
Dan Rose 2024-12-11 13:23:07 -06:00 committed by GitHub
parent 201936f9a3
commit 09e84efe8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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