model.d.ts 364 B

123456789101112131415161718192021222324
  1. declare const enum ChatType {
  2. Private = 'private',
  3. Group = 'group',
  4. Discuss = 'discuss',
  5. Temp = 'temp'
  6. }
  7. interface IChat {
  8. chatID: number,
  9. chatType: ChatType,
  10. }
  11. interface ILock {
  12. workon: number,
  13. feed: string[],
  14. threads: {
  15. [key: string]:
  16. {
  17. offset: string,
  18. updatedAt: string,
  19. subscribers: IChat[],
  20. }
  21. }
  22. }