Skip to content

⬅️ Back to Table of Contents

📄 useElementSize/directive

📊 Analysis Summary

Metric Count
📦 Imports 4
🟢 Vue Composition API 1
📑 Type Aliases 4

📚 Table of Contents

🛠️ File Location:

📂 packages/core/useElementSize/directive.ts

📦 Imports

Name Source
ElementSize @vueuse/core
useElementSize @vueuse/core
createDisposableDirective @vueuse/shared
watch vue

Vue Composition API

Name Type Reactive Variables Composables
watch watch none none

Type Aliases

RemoveFirstFromTuple<T extends any[]>

type RemoveFirstFromTuple<T extends any[]> = T['length'] extends 0 ? undefined
    : (((...b: T) => void) extends (a: any, ...b: infer I) => void ? I : []);

BindingValueFunction

type BindingValueFunction = (size: ElementSize) => void;

VElementSizeOptions

type VElementSizeOptions = RemoveFirstFromTuple<Parameters<typeof useElementSize>>;

BindingValueArray

type BindingValueArray = [BindingValueFunction, ...VElementSizeOptions];

Generated by Syntax Scribe