File tree 1 file changed +4
-4
lines changed
packages/runtime-core/src 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,18 +70,18 @@ export function watch(
70
70
| WatcherSource < unknown >
71
71
| WatcherSource < unknown > [ ]
72
72
| SimpleEffect ,
73
- effectOrOptions ?:
73
+ cbOrOptions ?:
74
74
| ( ( value : any , oldValue : any , onCleanup : CleanupRegistrator ) => any )
75
75
| WatchOptions ,
76
76
options ?: WatchOptions
77
77
) : StopHandle {
78
- if ( isFunction ( effectOrOptions ) ) {
78
+ if ( isFunction ( cbOrOptions ) ) {
79
79
// effect callback as 2nd argument - this is a source watcher
80
- return doWatch ( effectOrSource , effectOrOptions , options )
80
+ return doWatch ( effectOrSource , cbOrOptions , options )
81
81
} else {
82
82
// 2nd argument is either missing or an options object
83
83
// - this is a simple effect watcher
84
- return doWatch ( effectOrSource , null , effectOrOptions )
84
+ return doWatch ( effectOrSource , null , cbOrOptions )
85
85
}
86
86
}
87
87
You can’t perform that action at this time.
0 commit comments