Skip to content

Commit cfcf01e

Browse files
authored
docs(api): format WatchSource type (#3037)
1 parent 622e7e5 commit cfcf01e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/api/reactivity-core.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,7 @@ Watches one or more reactive data sources and invokes a callback function when t
384384
type WatchSource<T> =
385385
| Ref<T> // ref
386386
| (() => T) // getter
387-
| T extends object
388-
? T
389-
: never // reactive object
387+
| (T extends object ? T : never) // reactive object
390388
391389
interface WatchOptions extends WatchEffectOptions {
392390
immediate?: boolean // default: false

0 commit comments

Comments
 (0)