1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Improve type of IContent msgtype

This commit is contained in:
Michael Telatynski
2021-06-22 17:18:54 +01:00
parent 1d8e0398e9
commit a93de99d42

View File

@@ -24,7 +24,7 @@ import { EventEmitter } from 'events';
import { logger } from '../logger';
import { VerificationRequest } from "../crypto/verification/request/VerificationRequest";
import { EventType, RelationType } from "../@types/event";
import { EventType, MsgType, RelationType } from "../@types/event";
import { Crypto } from "../crypto";
import { deepSortedObjectEntries } from "../utils";
@@ -62,9 +62,9 @@ function intern(str: string): string {
}
/* eslint-disable camelcase */
interface IContent {
export interface IContent {
[key: string]: any;
msgtype?: string;
msgtype?: MsgType | string;
membership?: string;
avatar_url?: string;
displayname?: string;