From 09e84efe8cff44e957e25cb728aa47023053f462 Mon Sep 17 00:00:00 2001 From: Dan Rose Date: Wed, 11 Dec 2024 13:23:07 -0600 Subject: [PATCH] WatchCallback returns `void`, not `any` This matches the [documentation](https://github.com/vuejs/docs/blob/fe96839c9fe1ce82150e5a4396235cb3d1fb76e2/src/api/reactivity-core.md?plain=1#L378-L382) and better expresses that the return value is (mostly) ignored. --- packages/reactivity/src/watch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/reactivity/src/watch.ts b/packages/reactivity/src/watch.ts index 659121ca34b..349f8178d63 100644 --- a/packages/reactivity/src/watch.ts +++ b/packages/reactivity/src/watch.ts @@ -42,7 +42,7 @@ export type WatchCallback = ( value: V, oldValue: OV, onCleanup: OnCleanup, -) => any +) => void export type OnCleanup = (cleanupFn: () => void) => void