Skip to content
providerkit
GitHub

AttachmentItem

type AttachmentItem<F> = AttachmentBase<F> &
| {
state: "queued";
}
| {
progress?: number;
state: "uploading";
}
| {
reference: AttachmentRef;
state: "ready";
}
| {
canRetry: boolean;
error: DisplayError;
state: "failed";
};

Defined in: react/src/attachments.ts:52

Type Parameter Default type
F extends AttachmentFile File