summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/matrix-events-sdk/lib/NamespacedMap.d.ts
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
committerRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
commit953ddd82e48dd206cef5ac94456549aed13b3ad5 (patch)
tree8f003106ee2e7f422e5a22d2ee04d0db302e66c0 /includes/external/matrix/node_modules/matrix-events-sdk/lib/NamespacedMap.d.ts
parent62a9199846b0c07c03218703b33e8385764f42d9 (diff)
downloadpluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.gz
pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.bz2
pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.zip
Updated 30 files and deleted 2976 files (automated)
Diffstat (limited to 'includes/external/matrix/node_modules/matrix-events-sdk/lib/NamespacedMap.d.ts')
-rw-r--r--includes/external/matrix/node_modules/matrix-events-sdk/lib/NamespacedMap.d.ts55
1 files changed, 0 insertions, 55 deletions
diff --git a/includes/external/matrix/node_modules/matrix-events-sdk/lib/NamespacedMap.d.ts b/includes/external/matrix/node_modules/matrix-events-sdk/lib/NamespacedMap.d.ts
deleted file mode 100644
index 461f528..0000000
--- a/includes/external/matrix/node_modules/matrix-events-sdk/lib/NamespacedMap.d.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-import { NamespacedValue } from "./NamespacedValue";
-import { Optional } from "./types";
-declare type NS = NamespacedValue<string, string>;
-/**
- * A `Map` implementation which accepts a NamespacedValue as a key, and arbitrary value. The
- * namespaced value must be a string type.
- */
-export declare class NamespacedMap<V> {
- protected internalMap: Map<string, V>;
- /**
- * Creates a new map with optional seed data.
- * @param {Array<[NS, V]>} initial The seed data.
- */
- constructor(initial?: [NS, V][]);
- /**
- * Gets a value from the map. If the value does not exist under
- * either namespace option, falsy is returned.
- * @param {NS} key The key.
- * @returns {Optional<V>} The value, or falsy.
- */
- get(key: NS): Optional<V>;
- /**
- * Sets a value in the map.
- * @param {NS} key The key.
- * @param {V} val The value.
- */
- set(key: NS, val: V): void;
- /**
- * Determines if any of the valid namespaced values are present
- * in the map.
- * @param {NS} key The key.
- * @returns {boolean} True if present.
- */
- has(key: NS): boolean;
- /**
- * Removes all the namespaced values from the map.
- * @param {NS} key The key.
- */
- delete(key: NS): void;
- /**
- * Determines if the map contains a specific namespaced value
- * instead of the parent NS type.
- * @param {string} key The key.
- * @returns {boolean} True if present.
- */
- hasNamespaced(key: string): boolean;
- /**
- * Gets a specific namespaced value from the map instead of the
- * parent NS type. Returns falsy if not found.
- * @param {string} key The key.
- * @returns {Optional<V>} The value, or falsy.
- */
- getNamespaced(key: string): Optional<V>;
-}
-export {};