Created
September 9, 2019 18:39
-
-
Save vlio20/4c8c297deb9d628d8c4bf799bf2aa4cf to your computer and use it in GitHub Desktop.
refreshable
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
class Dashboard { | |
@refreshable({ | |
func: getCountroies, | |
intervalMs: 1000 * 60 * 60 | |
}) | |
countries: Countrie[]; | |
} | |
function getCountroies(e: Error): Promise<Countrie[]> { | |
// some code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment