Created
February 8, 2019 10:34
-
-
Save vvscode/96d6d97982982902eebac2a67c54b0de to your computer and use it in GitHub Desktop.
handle-api-call-state-nicely
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
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