You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +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 { logger } from '../logger';
|
||||||
import { VerificationRequest } from "../crypto/verification/request/VerificationRequest";
|
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 { Crypto } from "../crypto";
|
||||||
import { deepSortedObjectEntries } from "../utils";
|
import { deepSortedObjectEntries } from "../utils";
|
||||||
|
|
||||||
@@ -62,9 +62,9 @@ function intern(str: string): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-disable camelcase */
|
/* eslint-disable camelcase */
|
||||||
interface IContent {
|
export interface IContent {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
msgtype?: string;
|
msgtype?: MsgType | string;
|
||||||
membership?: string;
|
membership?: string;
|
||||||
avatar_url?: string;
|
avatar_url?: string;
|
||||||
displayname?: string;
|
displayname?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user