Skip to content

⬅️ Back to Table of Contents

📄 watchDeep

📊 Analysis Summary

Metric Count
🔧 Functions 1
📦 Imports 8
🟢 Vue Composition API 1

📚 Table of Contents

🛠️ File Location:

📂 packages/shared/watchDeep/index.ts

📦 Imports

Name Source
MultiWatchSources vue
WatchCallback vue
WatchHandle vue
WatchOptions vue
WatchSource vue
MapOldSources ../utils/types
MapSources ../utils/types
watch vue

Vue Composition API

Name Type Reactive Variables Composables
watch watch none none

Functions

watchDeep(source: WatchSource<T>, cb: WatchCallback<T, Immediate extends true…, options: Omit<WatchOptions<Immediate>, 'deep'>): WatchHandle

Parameters:

  • source WatchSource<T>
  • cb WatchCallback<T, Immediate extends true ? T | undefined : T>
  • options Omit<WatchOptions<Immediate>, 'deep'>

Returns: WatchHandle

Code
export function watchDeep<T, Immediate extends Readonly<boolean> = false>(
  source: WatchSource<T>,
  cb: WatchCallback<T, Immediate extends true ? T | undefined : T>,
  options?: Omit<WatchOptions<Immediate>, 'deep'>,
): WatchHandle

Generated by Syntax Scribe