Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. interface Fields {
  2. ...
  3. }
  4.  
  5. interface Node extends Fields {}
  6.  
  7. class Node extends Model<typeof Node, Fields>
  8. /**
  9. * Removes the child with the given id.
  10. * @returns {this}
  11. */
  12. public removeChildById(childId: number): this {
  13. this.children.remove(childId);
  14. return this;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement