Skip to content

Commit

Permalink
Add missing group
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeckem committed Aug 22, 2024
1 parent fa16296 commit 5f997c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/reactivity-core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ export type WatchCallback<T> = (value: T, oldValue: T) => void | CleanupFunc;
/**
* Like {@link WatchCallback}, but the `oldValue` parameter may be `undefined` for the first invocation.
* This is the case when `immediate: true` has been passed to the watch function, in which case there cannot be a previous value.
*
* @group Watching
*/
export type WatchImmediateCallback<T> = (value: T, oldValue: T | undefined) => void | CleanupFunc;

Expand Down

0 comments on commit 5f997c8

Please sign in to comment.