DCFronted/node_modules/superjson/dist/double-indexed-kv.d.ts
2025-07-06 20:54:40 +08:00

9 lines
231 B
TypeScript

export declare class DoubleIndexedKV<K, V> {
keyToValue: Map<K, V>;
valueToKey: Map<V, K>;
set(key: K, value: V): void;
getByKey(key: K): V | undefined;
getByValue(value: V): K | undefined;
clear(): void;
}