UNPKG

maz-ui

Version:

A standalone components library for Vue.Js 3 & Nuxt.Js 3

14 lines (13 loc) 652 B
import { ComponentPublicInstance, MaybeRefOrGetter } from 'vue'; export interface UseMutationObserverOptions extends MutationObserverInit { internalWindow?: Window | undefined; } /** * Watch for changes into DOM element. */ export declare function useMutationObserver(target: MaybeRefOrGetter<HTMLElement | SVGElement | ComponentPublicInstance | undefined | null>, callback: MutationCallback, options?: UseMutationObserverOptions): { isSupported: import('vue').Ref<boolean, boolean>; stop: () => void; takeRecords: () => MutationRecord[] | undefined; }; export type UseMutationObserverReturn = ReturnType<typeof useMutationObserver>;