Skip to content

Commit e109f7b

Browse files
authored
chore: remove overloads numbers in comments (#2976)
1 parent 2151fbb commit e109f7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/runtime-core/src/apiWatch.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const INITIAL_WATCHER_VALUE = {}
8080

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

83-
// overload #1: array of multiple sources + cb
83+
// overload: array of multiple sources + cb
8484
export function watch<
8585
T extends MultiWatchSources,
8686
Immediate extends Readonly<boolean> = false
@@ -90,7 +90,7 @@ export function watch<
9090
options?: WatchOptions<Immediate>
9191
): WatchStopHandle
9292

93-
// overload #2 for multiple sources w/ `as const`
93+
// overload: multiple sources w/ `as const`
9494
// watch([foo, bar] as const, () => {})
9595
// somehow [...T] breaks when the type is readonly
9696
export function watch<
@@ -102,14 +102,14 @@ export function watch<
102102
options?: WatchOptions<Immediate>
103103
): WatchStopHandle
104104

105-
// overload #2: single source + cb
105+
// overload: single source + cb
106106
export function watch<T, Immediate extends Readonly<boolean> = false>(
107107
source: WatchSource<T>,
108108
cb: WatchCallback<T, Immediate extends true ? (T | undefined) : T>,
109109
options?: WatchOptions<Immediate>
110110
): WatchStopHandle
111111

112-
// overload #3: watching reactive object w/ cb
112+
// overload: watching reactive object w/ cb
113113
export function watch<
114114
T extends object,
115115
Immediate extends Readonly<boolean> = false

0 commit comments

Comments
 (0)