context demo works

This commit is contained in:
Ken
2019-03-02 21:23:22 -08:00
parent b91914e1d8
commit 4be1dcdae9
13 changed files with 326 additions and 20 deletions

View File

@@ -0,0 +1,14 @@
export type FilterTypes = 'all' | 'active' | 'completed';
export interface TodoItem {
label: string;
completed: boolean;
}
export interface Store {
todos: {
[id: string]: TodoItem;
};
filter: FilterTypes;
}