| 12345678910111213141516171819202122232425262728293031 |
- import type {
- Nullable, Ref, HasObjectId,
- IPage, IRevision, IUser,
- } from '@growi/core';
- export type IComment = {
- comment: string;
- commentPosition: number,
- isMarkdown: boolean,
- replyTo: Nullable<string>,
- createdAt: Date,
- updatedAt: Date,
- page: Ref<IPage>,
- revision: Ref<IRevision>,
- creator: IUser,
- };
- export interface ICommentPostArgs {
- commentForm: {
- comment: string,
- revisionId: string,
- replyTo: string|undefined
- },
- slackNotificationForm: {
- isSlackEnabled: boolean|undefined,
- slackChannels: string|undefined,
- },
- }
- export type ICommentHasId = IComment & HasObjectId;
- export type ICommentHasIdList = ICommentHasId[];
|