Skip to content

Commit

Permalink
refactor(geom-api): update type usage
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Apr 19, 2024
1 parent aab2250 commit e00c3a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/geom-api/src/accel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IClear, ICopy, IEmpty, Pair } from "@thi.ng/api";
import type { IClear, ICopy, IEmpty, Maybe, Pair } from "@thi.ng/api";

export interface ISpatialMap<K, V>
extends Iterable<Pair<K, V>>,
Expand All @@ -14,7 +14,7 @@ export interface ISpatialMap<K, V>
into(pairs: Iterable<Pair<K, V>>, eps?: number): boolean;
remove(key: K): boolean;
has(key: K, eps?: number): boolean;
get(key: K, eps?: number): V | undefined;
get(key: K, eps?: number): Maybe<V>;
}

export interface ISpatialSet<K>
Expand All @@ -31,7 +31,7 @@ export interface ISpatialSet<K>
into(keys: Iterable<K>, eps?: number): boolean;
remove(key: K): boolean;
has(key: K, eps?: number): boolean;
get(key: K, eps?: number): K | undefined;
get(key: K, eps?: number): Maybe<K>;
}

export interface IRegionQuery<K, V, R> {
Expand Down

0 comments on commit e00c3a7

Please sign in to comment.