Getting there

This commit is contained in:
Zef Hemel
2022-02-22 14:18:37 +01:00
parent c9f4266d34
commit 84fcd0aeed
23 changed files with 651 additions and 533 deletions
+14 -5
View File
@@ -3,18 +3,27 @@ export type NoteMeta = {
name: string;
};
export type AppCommand = {
name: string;
run: () => void;
}
export type AppViewState = {
currentNote: string;
isSaved: boolean;
isFiltering: boolean;
showNoteNavigator: boolean;
showCommandPalette: boolean;
allNotes: NoteMeta[];
};
export type Action =
| { type: "loaded"; name: string }
| { type: "saved" }
| { type: "note-loaded"; name: string }
| { type: "note-saved" }
| { type: "note-updated" }
| { type: "notes-listed"; notes: NoteMeta[] }
| { type: "start-navigate" }
| { type: "stop-navigate" }
| { type: "updated" }
| { type: "notes-list"; notes: NoteMeta[] };
| { type: "show-palette" }
| { type: "hide-palette" }
;