No Description

MsgBase.d.ts 595B

12345678910111213141516171819202122
  1. export declare type MsgType = 'text' | 'media' | 'cmd' | 'attachment';
  2. export declare type RoomType = 'single' | 'room';
  3. export declare type GroupOption = {
  4. subject: string;
  5. description: string;
  6. members: string[];
  7. optionsPublic: boolean;
  8. optionsModerate: boolean;
  9. optionsMembersOnly: boolean;
  10. optionsAllowInvites: boolean;
  11. };
  12. export declare class MsgBase {
  13. id: string;
  14. from: string;
  15. to: string;
  16. type: MsgType;
  17. roomType: RoomType;
  18. ext: Record<string, string>;
  19. isValid(): boolean;
  20. static createMsg(baseMsg: Partial<MsgBase>): MsgBase;
  21. }