This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { StoreStructure, Actions } from './types'; | |
type AppState = { isLoading: boolean; email?: string }; | |
type Task = { id: string; title: string }; | |
type Tasks = Record<string, Task>; | |
type Log = { id: string }; | |
type Logs = Array<Log>; | |
interface MyStore extends StoreStructure { | |
appState: AppState; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ============== store ============== | |
export enum NodeTypes { | |
SINGLE_NODE = 'SINGLE_NODE', | |
COLLECTION_NODE = 'COLLECTION_NODE', | |
QUEUE_NODE = 'QUEUE_NODE', | |
} | |
export type Value = number | boolean | string | null | undefined; | |
export type Item = { [fieldName: string]: Value } & { id: string }; |