Skip to main content

RawComment

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

Represents a raw comment response from the API.

Type Declaration

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

See

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