async function userInformation({ userId, token }) {
const body = {
user: userId
};
const headers = {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/x-www-form-urlencoded'
};
const url = 'https://example.com/api/users';
const data = await axios.post(url, headers, qs.stringify(body));
return data;
}
Consider this code How should I write jsdoc for this function ? How to ensure that the parameters types were defined in jsdoc ?
