@es-react/react
Version:
Hippy react framework
27 lines (26 loc) • 786 B
TypeScript
interface NodeMeta {
skipAddToDom?: boolean;
component: {
name?: string;
skipAddToDom?: boolean;
};
}
declare class ViewNode {
nodeId: number;
meta: NodeMeta;
index: number;
childNodes: ViewNode[];
parentNode: ViewNode | null;
private mounted;
constructor();
toString(): string;
get isMounted(): boolean;
set isMounted(isMounted: boolean);
insertBefore(childNode: ViewNode, referenceNode: ViewNode): void;
moveChild(childNode: ViewNode, referenceNode: ViewNode): void | ViewNode;
appendChild(childNode: ViewNode): void;
removeChild(childNode: ViewNode): void;
findChild(condition: Function): ViewNode | null;
traverseChildren(callback: Function, refInfo: any): void;
}
export default ViewNode;