19 lines
617 B
TypeScript
19 lines
617 B
TypeScript
import { Event } from "./lib/api";
|
|
import { Readable } from "svelte/store";
|
|
|
|
export type Paginate = Readable<Array<Event>>;
|
|
|
|
export type EditPanels = "general" | "access" | "members" | "debug";
|
|
|
|
export type Popup =
|
|
{ type: "event", event: Event, paginate?: Paginate } |
|
|
{ type: "edit", event: Event, panel: EditPanels } |
|
|
{ type: "create" } |
|
|
{ type: "confirm", question: string, resolve: (accepted: boolean) => void } |
|
|
{ type: "prompt", question: string, resolve: (text: string | null) => void } |
|
|
{ type: "text", text: string };
|
|
|
|
export interface Workspace {
|
|
name: string,
|
|
events: Array<Event>,
|
|
}
|