Skip to main content

RawComment

type RawComment = {
content: string;
fileAttachment: | {
fileDuration?: number | null;
fileName?: string | null;
fileSize?: number | null;
fileType?: string | null;
fileUrl?: string | null;
image?: string | null;
imageHeight?: number | null;
imageWidth?: number | null;
resourceType: string;
title?: string | null;
uploadState?: "pending" | "completed" | null;
url?: string | null;
}
| null;
id: string;
isDeleted: boolean;
itemId?: string;
postedAt: string;
postedUid: string;
projectId?: string;
reactions: Record<string, string[]> | null;
uidsToNotify: string[] | null;
};

Represents a raw comment response from the API.

Type Declaration

NameType
contentstring
fileAttachment| { fileDuration?: number | null; fileName?: string | null; fileSize?: number | null; fileType?: string | null; fileUrl?: string | null; image?: string | null; imageHeight?: number | null; imageWidth?: number | null; resourceType: string; title?: string | null; uploadState?: "pending" | "completed" | null; url?: string | null; } | null
idstring
isDeletedboolean
itemId?string
postedAtstring
postedUidstring
projectId?string
reactionsRecord<string, string[]> | null
uidsToNotifystring[] | null

See

https://todoist.com/api/v1/docs#tag/Comments