-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
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
No type for API responses that return a list of values #235
Comments
@M1kep Example of using the const res = await client.api("/groups").get();
const group = res.value[0] as Group; Please let me know if you have any more questions. |
+1. Having types that encompass the |
I defined my own type for this purpose: type ODataResponse<T> = {
[key: string]: any;
value: T[];
} Maybe it could be expanded upon to actually list some the valid |
I think this really shouldn't be the intended behavior |
I've found that when querying endpoints such as
https://graph.microsoft.com/v1.0/groups
I cannot find any types that match up with the response structure shown below:Is this the intended behavior, and if so what is the suggested method for working around this?
AB#8341
The text was updated successfully, but these errors were encountered: