diff options
Diffstat (limited to 'includes/external/matrix/node_modules/matrix-events-sdk/lib/utility/events.d.ts')
-rw-r--r-- | includes/external/matrix/node_modules/matrix-events-sdk/lib/utility/events.d.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/includes/external/matrix/node_modules/matrix-events-sdk/lib/utility/events.d.ts b/includes/external/matrix/node_modules/matrix-events-sdk/lib/utility/events.d.ts new file mode 100644 index 0000000..4b284b9 --- /dev/null +++ b/includes/external/matrix/node_modules/matrix-events-sdk/lib/utility/events.d.ts @@ -0,0 +1,13 @@ +import { NamespacedValue } from "../NamespacedValue"; +/** + * Represents a potentially namespaced event type. + */ +export declare type EventType = NamespacedValue<string, string> | string; +/** + * Determines if two event types are the same, including namespaces. + * @param {EventType} given The given event type. This will be compared + * against the expected type. + * @param {EventType} expected The expected event type. + * @returns {boolean} True if the given type matches the expected type. + */ +export declare function isEventTypeSame(given: EventType, expected: EventType): boolean; |