UNPKG

tdesign-mobile-vue

Version:
18 lines (17 loc) 551 B
export interface MutationCallback { (mutations: MutationRecord[]): void; } interface Options { debounceTime?: number; config?: { attributeFilter?: string[]; attributeOldValue?: boolean; attributes?: boolean; characterData?: boolean; characterDataOldValue?: boolean; childList?: boolean; subtree?: boolean; }; } export declare function useMutationObservable(targetEl: HTMLElement | null, callback: MutationCallback, options?: Options): void; export default useMutationObservable;