Skip to content
Snippets Groups Projects
Unverified Commit b3d659b9 authored by yisding's avatar yisding Committed by GitHub
Browse files

Merge pull request #58 from tyre/index-constructor

add constructor to index node so it keeps passed-in indexId
parents 64b909f4 05b0fca6
No related branches found
No related tags found
No related merge requests found
......@@ -204,6 +204,11 @@ export class TextNode extends BaseNode {
export class IndexNode extends TextNode {
indexId: string = "";
constructor(init?: Partial<IndexNode>) {
super(init);
Object.assign(this, init);
}
getType(): ObjectType {
return ObjectType.INDEX;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment