1
0
silverbullet/plug-api/types.ts
2023-08-28 17:12:15 +02:00

27 lines
433 B
TypeScript

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