From 08af2efe0c25c7cd629c547287c878c8de7d855a Mon Sep 17 00:00:00 2001 From: Stanimira Vlaeva Date: Mon, 12 Jun 2017 19:57:25 +0300 Subject: [PATCH] fix: add dom-node declarations (#4359) --- tns-core-modules/debugger/dom-node.d.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tns-core-modules/debugger/dom-node.d.ts diff --git a/tns-core-modules/debugger/dom-node.d.ts b/tns-core-modules/debugger/dom-node.d.ts new file mode 100644 index 000000000..dfc287be1 --- /dev/null +++ b/tns-core-modules/debugger/dom-node.d.ts @@ -0,0 +1,22 @@ +import { ViewBase } from "../ui/core/view"; +import { CSSComputedStyleProperty } from "./css-agent"; +export declare function getNodeById(id: number): DOMNode; +export declare class DOMNode { + nodeId: any; + nodeType: any; + nodeName: any; + localName: any; + nodeValue: string; + attributes: string[]; + viewRef: WeakRef; + constructor(view: ViewBase); + loadAttributes(): void; + readonly children: DOMNode[]; + onChildAdded(childView: ViewBase): void; + onChildRemoved(view: ViewBase): void; + attributeModified(name: string, value: any): void; + attributeRemoved(name: string): void; + getComputedProperties(): CSSComputedStyleProperty[]; + dispose(): void; + toJSON(): string; +}