comment.ts 526 B

1234567891011121314151617181920
  1. import { Nullable, Ref } from './common';
  2. import { IPage } from './page';
  3. import { IUser } from './user';
  4. import { IRevision } from './revision';
  5. import { HasObjectId } from './has-object-id';
  6. export type IComment = {
  7. comment: string;
  8. commentPosition: number,
  9. isMarkdown: boolean,
  10. replyTo: Nullable<string>,
  11. createdAt: Date,
  12. updatedAt: Date,
  13. page: Ref<IPage>,
  14. revision: Ref<IRevision>,
  15. creator: IUser,
  16. };
  17. export type ICommentHasId = IComment & HasObjectId;
  18. export type ICommentHasIdList = ICommentHasId[];