Skip to content

Commit

Permalink
docs(api): format WatchSource type (#3037)
Browse files Browse the repository at this point in the history
  • Loading branch information
AloisSeckar committed Sep 29, 2024
1 parent cd9b417 commit 1484267
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api/reactivity-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,7 @@ Sleduje jeden nebo více reaktivních datových zdrojů a vyvolá callback, kdy
type WatchSource<T> =
| Ref<T> // ref
| (() => T) // getter
| T extends object
? T
: never // reaktivní objekt
| (T extends object ? T : never) // reaktivní objekt
interface WatchOptions extends WatchEffectOptions {
immediate?: boolean // výchozí: false
Expand Down

0 comments on commit 1484267

Please sign in to comment.