fix: createTree return type check

This commit is contained in:
Revone 2023-11-22 17:37:43 +08:00
parent 4162aeeb9d
commit b53156fb48
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file.
- [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
- [`auto-changelog`](https://github.com/CookPete/auto-changelog)
## [v1.46.9](https://github.com/zrwusa/data-structure-typed/compare/v1.35.0...main) (upcoming)
## [v1.47.0](https://github.com/zrwusa/data-structure-typed/compare/v1.35.0...main) (upcoming)
### Changes

View file

@ -53,7 +53,7 @@ export class AVLTree<V = any, N extends AVLTreeNode<V, N> = AVLTreeNode<V, AVLTr
return new AVLTreeNode<V, N>(key, value) as N;
}
override createTree(options?: AVLTreeOptions) {
override createTree(options?: AVLTreeOptions): TREE {
return new AVLTree<V, N, TREE>({ ...this.options, ...options }) as TREE;
}