/** * Interface representing an updater for the virtual DOM. * An implementation of this interface is responsible for applying changes * from the virtual DOM to the actual DOM. */ export interface VDOMUpdater { /** * The list of identifiers that this updater depends on. * Changes to these identifiers may trigger the updater to apply changes to the DOM. */ get dependentIdentifiers(): string[]; /** * Applies the changes from the virtual DOM to the actual DOM. * This method is called when the identifiers change or when an update is needed. */ applyToDOM(): void; }