Skip to content

Instantly share code, notes, and snippets.

@ckoster22
Created August 6, 2017 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckoster22/4e49034179c5ad637a401f01eda4437a to your computer and use it in GitHub Desktop.
Save ckoster22/4e49034179c5ad637a401f01eda4437a to your computer and use it in GitHub Desktop.
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