Skip to content

Commit a9f461e

Browse files
committed
feat(node): allow to cast as String
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent b7ce2fe commit a9f461e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/node/node.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,14 @@ export abstract class Node {
422422
*/
423423
abstract clone(): Node
424424

425+
/**
426+
* String representation of the node
427+
*/
428+
toString(): string {
429+
const constructorData: NodeConstructorData = [this._data, this._knownDavService]
430+
return JSON.stringify(constructorData)
431+
}
432+
425433
}
426434

427435
/**

0 commit comments

Comments
 (0)