We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug export async function RegistrationApi(userName,userMail, userPassword, userPhoto) { try { Store.dispatch(showLoader()); const URL = ${Base_url}/register; const postBody = { userMail, userName, userPassword, userPhoto }; const res = await axios.post(URL, postBody); if (res.status === 200) { return true; } else { toast.error("Failed to register"); return false; } } catch (error) { Store.dispatch(HideLoader()); console.log(error); return false; } } Problem JsLint can not read async and await my code is okay but jsLint say warning
${Base_url}/register
The text was updated successfully, but these errors were encountered:
thx for reporting. jslint now has proper grammar for recognizing export async function ...
export async function ...
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
export async function RegistrationApi(userName,userMail,
userPassword, userPhoto) {
try {
Store.dispatch(showLoader());
const URL =
${Base_url}/register
;const postBody = {
userMail,
userName,
userPassword,
userPhoto
};
const res = await axios.post(URL, postBody);
if (res.status === 200) {
return true;
} else {
toast.error("Failed to register");
return false;
}
} catch (error) {
Store.dispatch(HideLoader());
console.log(error);
return false;
}
}
Problem JsLint can not read async and await my code is okay but jsLint say warning
The text was updated successfully, but these errors were encountered: