1
0
silverbullet/packages/common/types.ts

24 lines
420 B
TypeScript
Raw Normal View History

export const reservedPageNames = ["page", "attachment", "plug"];
export type PageMeta = {
name: string;
lastModified: number;
2022-04-01 15:07:08 +00:00
lastOpened?: number;
2022-05-17 06:32:33 +00:00
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;
};