Skip to content

Attachment

type Attachment =
| {
asset: string;
height?: number;
id: string;
kind: "image";
mime: string;
name: string;
size: number;
width?: number;
}
| {
description?: string;
icon?: string;
id: string;
image?: string;
imageAsset?: string;
kind: "link";
site?: string;
title?: string;
url: string;
};

An attachment of a row, which is either an image or a link. It holds only a small description. The bytes of an image are kept by the app, under a name that is the hash of their content.