You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
367 B
15 lines
367 B
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;
|
|
|