summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/matrix-events-sdk/lib/utility/events.d.ts
blob: 4b284b920bf91836b718052de4c0e9afad9659fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;