Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface Fields {
- ...
- }
- interface Node extends Fields {}
- class Node extends Model<typeof Node, Fields>
- /**
- * Removes the child with the given id.
- * @returns {this}
- */
- public removeChildById(childId: number): this {
- this.children.remove(childId);
- return this;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement