Frontend/25_01_07/mai/node_modules/side-channel-map/index.d.ts

16 lines
367 B
TypeScript
Raw Normal View History

2025-01-28 10:38:27 +00:00
declare namespace getSideChannelMap {
type Channel<K, V> = {
assert: (key: K) => void;
has: (key: K) => boolean;
get: (key: K) => V | undefined;
set: (key: K, value: V) => void;
delete: (key: K) => boolean;
};
}
declare function getSideChannelMap<K, V>(): getSideChannelMap.Channel<K, V>;
declare const x: false | typeof getSideChannelMap;
export = x;