Skip to content

Instantly share code, notes, and snippets.

@vlio20
Created September 9, 2019 18:35
Show Gist options
  • Save vlio20/ec2c4fef9cc54660f0ccdbf84c42b52c to your computer and use it in GitHub Desktop.
Save vlio20/ec2c4fef9cc54660f0ccdbf84c42b52c to your computer and use it in GitHub Desktop.
onError
class DataProvider {
@onError({
func: handleError
})
getData(params: QueryParams): Promise<Data> {
// some code
}
}
function handlerError(e: Error): void {
// some code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment