mirror of
https://github.com/zrwusa/data-structure-typed.git
synced 2024-11-23 12:54:04 +00:00
fix: createTree return type check
This commit is contained in:
parent
4162aeeb9d
commit
b53156fb48
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue