types.ts 802 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. export type TMessage = {
  2. message: string,
  3. replyMessage: string,
  4. forwardMessage: string,
  5. name: string,
  6. replyName: string,
  7. lastName: string,
  8. replyLastName: string,
  9. forwardName: string,
  10. forwardLastName: string,
  11. avatarUrl:string,
  12. color: string,
  13. number:string,
  14. _id: string,
  15. type: string,
  16. fullType:string,
  17. companionId: string,
  18. companionIdFlow: string,
  19. companionIdForwardToAndFrom: string,
  20. caption: string,
  21. replyCaption: string,
  22. forwardCaption: string,
  23. emoji: string,
  24. emojiCompanion: string,
  25. pinned: boolean,
  26. edited: boolean,
  27. deleted: boolean,
  28. initiator: boolean,
  29. reject: boolean,
  30. duration: number,
  31. idTime: string,
  32. oldId: string,
  33. owner: any,
  34. createdAt: string,
  35. updatedAt: string,
  36. __v: number
  37. }
  38. export type TAllMessages = TMessage[] | []