blob: 5b0fd42a327c26acace05b29a873a2ceb4d6dc28 [file] [log] [blame]
import { NodeMutation, NodeWatcherHandler } from "../../../../nodeWatcher/NodeWatcherHandler";
export abstract class NodeWatcherScriptHandler<Options>
implements NodeWatcherHandler
{
abstract initialDiscoverySelector?: string;
constructor(protected options: Options) {}
abstract nodeFilter(nodeMutation: NodeMutation): boolean;
abstract onMutatedNode(nodeMutation: NodeMutation): void;
}
export type ConcreteNodeWatcherScriptHandler<Options> = {
new (options: Options): NodeWatcherScriptHandler<Options>;
};