Type Alias SafeWeakMap<K, V>

SafeWeakMap<K, V>: {
    __brand: "SafeWeakMap";
    __key: K;
    __val: V;
    $delete(this: SafeWeakMap<K, V>, key: K): boolean;
    $get(this: SafeWeakMap<K, V>, key: K): undefined | V;
    $has(this: SafeWeakMap<K, V>, key: K): boolean;
    $set(this: SafeWeakMap<K, V>, key: K, val: V): void;
}

Type Parameters

  • K
  • V