Skip to content

Instantly share code, notes, and snippets.

@snmmaurya
Created January 31, 2022 11:54
Show Gist options
  • Save snmmaurya/888d2c2c90c890580c5bb22ffc02445f to your computer and use it in GitHub Desktop.
Save snmmaurya/888d2c2c90c890580c5bb22ffc02445f to your computer and use it in GitHub Desktop.
Type Script Object is of type 'unknown'.
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