Skip to content

Instantly share code, notes, and snippets.

@vvscode
Created February 8, 2019 10:34
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 vvscode/96d6d97982982902eebac2a67c54b0de to your computer and use it in GitHub Desktop.
Save vvscode/96d6d97982982902eebac2a67c54b0de to your computer and use it in GitHub Desktop.
handle-api-call-state-nicely
export interface News extends Loadable {
news: string[];
}
export function createDefaultNews(): News {
return {
...createDefaultLoadable(),
entities: []
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment