1
0
silverbullet/common/types.ts

32 lines
616 B
TypeScript
Raw Normal View History

export const maximumAttachmentSize = 100 * 1024 * 1024; // 100 MB
2022-09-12 12:50:37 +00:00
export type FileMeta = {
name: string;
lastModified: number;
contentType: string;
size: number;
perm: "ro" | "rw";
} & Record<string, any>;
2022-09-12 12:50:37 +00:00
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";
} & Record<string, any>;
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;
} & Record<string, any>;