Skip to content

Commit

Permalink
feat(types): export MultiWatchSources type (#9563)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala authored Aug 2, 2024
1 parent 22f7d96 commit 998dca5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/apiWatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function watchSyncEffect(
// initial value for watchers to trigger on undefined initial values
const INITIAL_WATCHER_VALUE = {}

type MultiWatchSources = (WatchSource<unknown> | object)[]
export type MultiWatchSources = (WatchSource<unknown> | object)[]

// overload: single source + cb
export function watch<T, Immediate extends Readonly<boolean> = false>(
Expand Down
1 change: 1 addition & 0 deletions packages/runtime-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export type {
Reactive,
} from '@vue/reactivity'
export type {
MultiWatchSources,
WatchEffect,
WatchOptions,
WatchOptionsBase,
Expand Down

0 comments on commit 998dca5

Please sign in to comment.