Skip to main content

Attachment

type Attachment = {
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;
};

Represents a file attachment in a comment.

Type Declaration

NameType
fileDuration?null | number
fileName?null | string
fileSize?null | number
fileType?null | string
fileUrl?null | string
image?null | string
imageHeight?null | number
imageWidth?null | number
resourceTypestring
title?null | string
uploadState?null | "pending" | "completed"
url?null | string

See

https://todoist.com/api/v1/docs#tag/Sync/Comments/File-Attachments