Skip to content

Instantly share code, notes, and snippets.

@mcjcloud
Created July 10, 2020 06:46
Show Gist options
  • Save mcjcloud/835b9a12b026384ff81ca62dca12a706 to your computer and use it in GitHub Desktop.
Save mcjcloud/835b9a12b026384ff81ca62dca12a706 to your computer and use it in GitHub Desktop.
Asterisk Medium Article: state interface
// State type
// this interface represents the schema for the Todo state
export interface TodoState {
fetchError?: any
createError?: any
completeError?: any
uncompleteError?: any
isFetchingTodos: boolean
isCreatingTodo: boolean
isCompletingTodo: boolean
isUncompletingTodo: boolean
todos: TodoItem[]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment