Skip to content

TypeScript API / laikacms/assets/r2 / R2AssetEntry

Interface: R2AssetEntry ​

Entry in an R2 directory listing

Properties ​

customMetadata? ​

ts
optional customMetadata?: Record<string, string>;

etag? ​

ts
optional etag?: string;

httpMetadata? ​

ts
optional httpMetadata?: object;

contentType? ​

ts
optional contentType?: string;

key ​

ts
key: string;

size? ​

ts
optional size?: number;

type ​

ts
type: "dir" | "file";

uploaded? ​

ts
optional uploaded?: Date;

Released under the MIT License.