Created
          September 4, 2019 18:04 
        
      - 
      
- 
        Save kettanaito/89455b81a79df9773c183a6354d52006 to your computer and use it in GitHub Desktop. 
    Thinking in Functions — The Input/Output pattern
  
        
  
    
      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
    
  
  
    
  | const getUser = (id: string) => User | |
| const getPosts = (user: User) => Post[] | |
| const getTotalLikes = (posts: Post[]) => number | |
| // getUser -> getPosts -> getTotalLikes | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment