Skip to content
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

Support generics for expand fields #30

Merged
merged 2 commits into from
Jan 22, 2023
Merged

Support generics for expand fields #30

merged 2 commits into from
Jan 22, 2023

Conversation

patmood
Copy link
Owner

@patmood patmood commented Jan 22, 2023

If a collection has a "relation" field, support passing generic types so that the expanded response is properly typed.

If the collection has no relation fields, the expand field will typed correctly as never

fixes #27

@patmood patmood merged commit 883dc25 into main Jan 22, 2023
@patmood patmood deleted the expand-generics branch January 22, 2023 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: add generics for expanded fields
1 participant