From e84a1789af2a0292128807b86649a45c4da0a51c Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 15 Dec 2021 02:37:03 +0100 Subject: idb-bridge: faster indices, various correctness fixes and tests --- packages/idb-bridge/src/tree/interfaces.ts | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) (limited to 'packages/idb-bridge/src/tree/interfaces.ts') 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). * The word "set" usually means that each item in the collection is unique @@ -350,6 +326,8 @@ export interface IMapF extends IMapSource, ISetF { export interface ISortedSetF extends ISetF, ISortedSetSource { // TypeScript requires this method of ISortedSetSource to be repeated keys(firstKey?: K): IterableIterator; + without(key: K): ISortedSetF; + with(key: K): ISortedSetF; } export interface ISortedMapF -- cgit v1.2.3