UNPKG

@3mo/mutation-observer

Version:

A lit controller and directive for observing mutations.

12 lines 634 B
import { AsyncDirective, PartInfo } from '@a11d/lit'; declare class MutationDirective extends AsyncDirective { readonly observer: MutationObserver; protected readonly element: Element; protected callback?: MutationCallback; constructor(partInfo: PartInfo); render(callback: MutationCallback, options?: MutationObserverInit): void; protected disconnected(): void; } export declare const observeMutation: (callback: MutationCallback, options?: MutationObserverInit | undefined) => import("lit-html/directive.js").DirectiveResult<typeof MutationDirective>; export {}; //# sourceMappingURL=observeMutation.d.ts.map