-
Notifications
You must be signed in to change notification settings - Fork 54
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
Feature Request: Export union of all entries #107
Comments
penx
changed the title
Feature Request: Union of all entries
Feature Request: Export union of all entries
Dec 9, 2021
Similar / related to this request it would also be cool to get a type that maps CONTENT_TYPE names to their interface types. For example:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would it be possible to export a union of all generated Entries/Content Types?
Use cases:
ContentfulClientApi.getEntries<T>
I know I should be passing one of these types in as the generic, so it would be useful for me to apply this guard before the getEntries call to ensure a valid generic type has been passed.entry.sys.contentType.sys.id
to infer the type ofentry.sys
The text was updated successfully, but these errors were encountered: