Add save function

This commit is contained in:
2022-06-21 18:44:20 +02:00
parent de0e758ebb
commit 9531ab7006
10 changed files with 99 additions and 30 deletions

View File

@@ -1,11 +1,6 @@
import type { ContentList, Diary, Project } from "../content/types";
import type { ContentList } from "../content/types";
import { printSyntax, commandList } from "./definitions";
interface CommandInterfaceCallbacks {
setModalVisible?: (visible: boolean) => void;
setModalContent?: (content: Project|Diary, selectedPage?: number) => void;
setModalHTML?: (html: string) => void;
}
import { CommandInterfaceCallbacks } from "./types";
export class CommandInterface {
callbacks?: CommandInterfaceCallbacks;