Skip to main content

Comment

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

Represents a comment in Todoist.

Type Declaration

NameTypeDefault value
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-
postedAtstring-
postedUidstring-
projectId?string-
reactionsRecord<string, string[]> | null-
taskIdstring | undefineditemId
uidsToNotifystring[] | null-

See

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