diff options
author | Florian Dold <florian@dold.me> | 2021-12-15 02:37:03 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-12-15 02:38:14 +0100 |
commit | e84a1789af2a0292128807b86649a45c4da0a51c (patch) | |
tree | cfeeb7505e6c40e778029ba0a05d0d472aad91a5 /packages/idb-bridge/src/tree/interfaces.ts | |
parent | 2237058bcc8f589b51137fe5f8e3ed53039e25db (diff) | |
download | wallet-core-e84a1789af2a0292128807b86649a45c4da0a51c.tar.xz |
idb-bridge: faster indices, various correctness fixes and tests
Diffstat (limited to 'packages/idb-bridge/src/tree/interfaces.ts')
-rw-r--r-- | packages/idb-bridge/src/tree/interfaces.ts | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/packages/idb-bridge/src/tree/interfaces.ts b/packages/idb-bridge/src/tree/interfaces.ts index ce8808d09..01013c038 100644 --- a/packages/idb-bridge/src/tree/interfaces.ts +++ b/packages/idb-bridge/src/tree/interfaces.ts @@ -1,28 +1,4 @@ -/* -Copyright (c) 2018 David Piepgrass - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -SPDX-License-Identifier: MIT -*/ - -// Original repository: https://github.com/qwertie/btree-typescript +// B+ tree by David Piepgrass. License: MIT /** Read-only set interface (subinterface of IMapSource<K,any>). * The word "set" usually means that each item in the collection is unique @@ -350,6 +326,8 @@ export interface IMapF<K = any, V = any> extends IMapSource<K, V>, ISetF<K> { export interface ISortedSetF<K = any> extends ISetF<K>, ISortedSetSource<K> { // TypeScript requires this method of ISortedSetSource to be repeated keys(firstKey?: K): IterableIterator<K>; + without(key: K): ISortedSetF<K>; + with(key: K): ISortedSetF<K>; } export interface ISortedMapF<K = any, V = any> |