@surface/custom-element
Version:
Provides support of directives and data binding on custom elements.
10 lines (9 loc) • 527 B
TypeScript
import type { IDisposable } from "@surface/core";
import Scheduler from "./processors/scheduler.js";
import type { DirectiveEntry } from "./types";
export declare const globalCustomDirectives: Map<string, DirectiveEntry>;
export declare const scheduler: Scheduler;
/** Deeply disposes a node tree. */
export declare function disposeTree(node: Node & Partial<IDisposable>): void;
/** Returns a promise that will be resolved when all scheduled updated was executed. */
export declare function painting(): Promise<void>;