Created
August 6, 2017 18:35
-
-
Save ckoster22/4e49034179c5ad637a401f01eda4437a to your computer and use it in GitHub Desktop.
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
type User = { | |
login: string, | |
avatarUrl: string | |
}; | |
type PageState = Initial | Retrieving | Success | Error; | |
type Initial = { | |
kind: 'Initial' | |
}; | |
type Retrieving = { | |
kind: 'Retrieving' | |
}; | |
type Success = { | |
kind: 'Success', | |
users: User[] | |
}; | |
type Error = { | |
kind: 'Error', | |
message: string | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment