This file has been truncated, but you can view the full file.
    
    
  
    
      This file contains hidden or 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
    
  
  
    
  | { | |
| "name": "the-landing", | |
| "version": "0.1.0", | |
| "lockfileVersion": 2, | |
| "requires": true, | |
| "packages": { | |
| "": { | |
| "name": "the-landing", | |
| "version": "0.1.0", | |
| "dependencies": { | 
  
    
      This file contains hidden or 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
    
  
  
    
  | { | |
| "name": "the-landing", | |
| "version": "0.1.0", | |
| "private": true, | |
| "scripts": { | |
| "dev": "next dev", | |
| "build": "next build", | |
| "start": "next start -p $PORT", | |
| "lint": "eslint ./src", | |
| "lint:fix": "eslint ./src --fix" | 
  
    
      This file contains hidden or 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
    
  
  
    
  | [ignore] | |
| .*/node_modules/*. | |
| [include] | |
| [libs] | |
| node_modules/iflow-redux/index.js.flow | |
| node_modules/iflow-redux-actions/index.js.flow | |
| [options] | |
| esproposal.decorators=ignore | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // @flow | |
| export type Todo = { | |
| text: string, | |
| completed: boolean, | |
| id: number | |
| }; | |
| export type Todos = Array<Todo>; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // @flow | |
| import React, { Component } from 'react' | |
| import { connect } from 'react-redux' | |
| import { | |
| addTodo, | |
| deleteTodo | |
| } from './TodoActions' | |
| import type { Dispatch } from 'redux'; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // @flow | |
| import { createAction } from 'redux-actions'; | |
| import * as types from '../constants/ActionTypes' | |
| export const addTodo: createAction = createAction(types.ADD_TODO, (text: string): {text: string} => ({ text })); | |
| export const deleteTodo: createAction = createAction(types.DELETE_TODO, (id: number): {id: number} => ({ id })); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // @flow | |
| import { handleActions } from 'redux-actions'; | |
| import { ADD_TODO, DELETE_TODO } from '../constants/ActionTypes.js'; | |
| import { Todos, Todo } from '../constants/TodoFlow.js'; | |
| export const TodosInitialState: Todos = [ | |
| { | |
| text: 'Use Redux', | |
| completed: false, | |
| id: 0 |