aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/side-channel-map/index.d.ts
blob: de33e899e66db27eac77bb85d1b8afe183272e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;