aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/side-channel-weakmap/index.d.ts
blob: ce1bc2a4ae2ea0be0eac679b305b6d20d69a7793 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
declare namespace getSideChannelWeakMap {
	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 getSideChannelWeakMap<K, V>(): getSideChannelWeakMap.Channel<K, V>;

declare const x: false | typeof getSideChannelWeakMap;

export = x;