Skip to main content

Comment

type Comment = {
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;
postedAt: string;
postedUid: string;
projectId?: string;
reactions: null | Record<string, string[]>;
taskId: undefined | string;
uidsToNotify: null | string[];
};

Represents a comment in Todoist.

Type Declaration

NameTypeDefault value
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-
postedAtstring-
postedUidstring-
projectId?string-
reactionsnull | Record<string, string[]>-
taskIdundefined | stringitemId
uidsToNotifynull | string[]-

See

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