@@ -515,7 +515,7 @@ export class BinaryTree<
515
515
*
516
516
* The function `delete` in TypeScript implements the deletion of a node in a binary tree and returns
517
517
* the deleted node along with information for tree balancing.
518
- * @param {BTNKeyOrNodeOrEntry<K, V, NODE> | R | BTNPredicate<NODE> } keyOrNodeOrEntryOrRawOrPredicate
518
+ * @param {BTNKeyOrNodeOrEntry<K, V, NODE> | R } keyOrNodeOrEntryOrRawOr
519
519
* - The `delete` method you provided is used to delete a node from a binary tree based on the key,
520
520
* node, entry, raw data, or a custom predicate. The method returns an array of
521
521
* `BinaryTreeDeleteResult` objects containing information about the deleted node and whether
@@ -525,12 +525,12 @@ export class BinaryTree<
525
525
* need to be balanced (`needBalanced`).
526
526
*/
527
527
delete (
528
- keyOrNodeOrEntryOrRawOrPredicate : BTNKeyOrNodeOrEntry < K , V , NODE > | R | BTNPredicate < NODE >
528
+ keyOrNodeOrEntryOrRawOr : BTNKeyOrNodeOrEntry < K , V , NODE > | R
529
529
) : BinaryTreeDeleteResult < NODE > [ ] {
530
530
const deletedResult : BinaryTreeDeleteResult < NODE > [ ] = [ ] ;
531
531
if ( ! this . _root ) return deletedResult ;
532
532
533
- const curr = this . getNode ( keyOrNodeOrEntryOrRawOrPredicate ) ;
533
+ const curr = this . getNode ( keyOrNodeOrEntryOrRawOr ) ;
534
534
if ( ! curr ) return deletedResult ;
535
535
536
536
const parent : NODE | undefined = curr ?. parent ;
0 commit comments