UNPKG

dom-watchdog

Version:

Observe mudanças no DOM com callbacks simples.

8 lines (7 loc) 271 B
type WatchOptions = { onAdd?: (el: Element) => void; onRemove?: (el: Element) => void; onChange?: (el: Element) => void; }; export declare function watch(selector: string, options: WatchOptions, observerOptions?: MutationObserverInit): () => void; export {};