Skip to content

⬅️ Back to Table of Contents

📄 index.ts

📊 Analysis Summary

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

📚 Table of Contents

🛠️ File Location:

📂 packages/shared/watchOnce/index.ts

📦 Imports

Name Source
WatchCallback vue
WatchOptions vue
WatchSource vue
WatchStopHandle vue
MapOldSources ../utils
MapSources ../utils
watch vue

Vue Composition API

Name Type Reactive Variables Composables
watch watch none none

Functions

watchOnce(source: [...T], cb: WatchCallback<MapSources<T>, MapOldSources<T, true>>, options: Omit<WatchOptions<true>, 'once'>): WatchStopHandle

Code
export function watchOnce<T extends Readonly<WatchSource<unknown>[]>>(
  source: [...T],
  cb: WatchCallback<MapSources<T>, MapOldSources<T, true>>,
  options?: Omit<WatchOptions<true>, 'once'>
): WatchStopHandle
  • Parameters:
  • source: [...T]
  • cb: WatchCallback<MapSources<T>, MapOldSources<T, true>>
  • options: Omit<WatchOptions<true>, 'once'>
  • Return Type: WatchStopHandle