You've already forked matrix-js-sdk
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user