revision.ts 346 B

1234567891011121314151617181920
  1. import { IUser } from './user';
  2. export type IRevision = {
  3. body: string,
  4. author: IUser,
  5. hasDiffToPrev: boolean;
  6. createdAt: Date,
  7. updatedAt: Date,
  8. }
  9. export type IRevisionOnConflict = {
  10. revisionId: string,
  11. revisionBody: string,
  12. createdAt: Date,
  13. user: IUser
  14. }
  15. export type HasRevisionShortbody = {
  16. revisionShortBody?: string,
  17. }