Open cainlevy opened 2 years ago
The response types in users.ts indicate that all data attributes will be available in the response, e.g.:
const response = await getUser(....); console.log(response.email);
This is not currently the case. The data attributes are instead available in response.data (itself typed as any) and response.body.data (also any).
response.data
any
response.body.data
Different than #21 although the titles sound similar, they're different.
The response types in users.ts indicate that all data attributes will be available in the response, e.g.:
This is not currently the case. The data attributes are instead available in
response.data
(itself typed asany
) andresponse.body.data
(alsoany
).