Cleanup, functional

This commit is contained in:
Zef Hemel
2022-02-21 13:25:41 +01:00
parent cbe0677f93
commit c9f4266d34
21 changed files with 237 additions and 451 deletions
+20
View File
@@ -0,0 +1,20 @@
export type NoteMeta = {
name: string;
};
export type AppViewState = {
currentNote: string;
isSaved: boolean;
isFiltering: boolean;
allNotes: NoteMeta[];
};
export type Action =
| { type: "loaded"; name: string }
| { type: "saved" }
| { type: "start-navigate" }
| { type: "stop-navigate" }
| { type: "updated" }
| { type: "notes-list"; notes: NoteMeta[] };