UNPKG

@dvcol/svelte-utils

Version:

Svelte library for common utility functions and constants

16 lines (15 loc) 471 B
import type { Action } from 'svelte/action'; type MutationCallback = (entry: MutationRecord, index: number, entries: MutationRecord[]) => unknown; type MutationOptions = { callback: MutationCallback; options: MutationObserverInit; }; /** * Watch for mutations on an element. * * @see https://github.com/whatwg/dom/issues/126 * @param node * @param parameters */ export declare const mutation: Action<Element, MutationOptions | MutationCallback>; export {};