Skip to content

Commit a815e15

Browse files
committed
docs(api): format WatchSource type
1 parent ffc8472 commit a815e15

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 @@
384384
type WatchSource<T> =
385385
| Ref<T> // ref
386386
| (() => T) // ゲッター
387-
| T extends object
388-
? T
389-
: never // リアクティブなオブジェクト
387+
| (T extends object ? T : never) // リアクティブなオブジェクト
390388
391389
interface WatchOptions extends WatchEffectOptions {
392390
immediate?: boolean // 初期値: false

0 commit comments

Comments
 (0)