model.d.ts 347 B

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