1
0
silverbullet/plug-api/types.ts
2023-08-20 17:51:00 +02:00

22 lines
348 B
TypeScript

export type Message = {
id: string;
queue: string;
body: any;
retries?: number;
};
export type QueueStats = {
queued: number;
processing: number;
dlq: number;
};
export type FileMeta = {
name: string;
lastModified: number;
contentType: string;
size: number;
perm: "ro" | "rw";
noSync?: boolean;
} & Record<string, any>;