@stackoverfloweth/vue-compositions
Version:
A collection of reusable vue compositions.
8 lines (7 loc) • 400 B
TypeScript
import { Ref } from 'vue';
export type UseMutationObserverResponse = {
observe: (element: Element | Ref<Element | undefined>, options: MutationObserverInit) => void;
disconnect: () => void;
check: (element: Element | Ref<Element | undefined>, options: MutationObserverInit) => void;
};
export declare function useMutationObserver(callback: MutationCallback): UseMutationObserverResponse;