用工小程序前端代码
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
382 B

2 months ago
  1. declare namespace getSideChannelWeakMap {
  2. type Channel<K, V> = {
  3. assert: (key: K) => void;
  4. has: (key: K) => boolean;
  5. get: (key: K) => V | undefined;
  6. set: (key: K, value: V) => void;
  7. delete: (key: K) => boolean;
  8. }
  9. }
  10. declare function getSideChannelWeakMap<K, V>(): getSideChannelWeakMap.Channel<K, V>;
  11. declare const x: false | typeof getSideChannelWeakMap;
  12. export = x;