Created
January 31, 2022 11:54
-
-
Save snmmaurya/888d2c2c90c890580c5bb22ffc02445f to your computer and use it in GitHub Desktop.
Type Script Object is of type 'unknown'.
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
Object is of type 'unknown'. | |
for ex - | |
catch (err) { | |
logger.error("CoindcxVpcAPI", url, err); | |
if (err.response) { | |
throw new ServiceError( | |
err.response.data && err.response.data.message || "Invalid Request", | |
err.response.status, | |
err.response.data && err.response.data.status || "error" | |
); | |
} | |
else throw err; | |
} | |
change catch (err) into catch (err: any={}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment