diff --git a/typescript/base/single/button/node/textnode.ts b/typescript/base/single/button/node/textnode.ts index fcf65378db..21d22aed3e 100644 --- a/typescript/base/single/button/node/textnode.ts +++ b/typescript/base/single/button/node/textnode.ts @@ -1,6 +1,9 @@ import { NodeButton } from "../button.node"; export declare class TextNode extends NodeButton { + + static xtype: string; + setText(b: string): void; getText(): string; diff --git a/typescript/core/utils/tree.ts b/typescript/core/utils/tree.ts index 3ae195351e..cfc773b277 100644 --- a/typescript/core/utils/tree.ts +++ b/typescript/core/utils/tree.ts @@ -26,7 +26,7 @@ export declare class Node { export declare class Tree { root: Node; - addNode(node: Node, newNode: Node, index: number):void; + addNode(node: Node, newNode: Node, index?: number):void; isRoot(node: Node): boolean; getRoot(): Node; clear():void;