1
0
silverbullet/packages/common/types.ts
2022-09-05 11:47:30 +02:00

24 lines
420 B
TypeScript

export const reservedPageNames = ["page", "attachment", "plug"];
export type PageMeta = {
name: string;
lastModified: number;
lastOpened?: number;
perm: "ro" | "rw";
};
export type AttachmentMeta = {
name: string;
contentType: string;
lastModified: number;
size: number;
perm: "ro" | "rw";
};
// Used by FilterBox
export type FilterOption = {
name: string;
orderId?: number;
hint?: string;
};