Files
matrix-quotes-bot/node_modules/matrix-events-sdk/lib/utility/events.d.ts
unfunny dfe4cc537f init
2026-09-13 00:29:11 -04:00

14 lines
583 B
TypeScript

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;