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

Union type of all contentTypeId and inferring EntrySkeleton types from it #351

Open
Bearfinn opened this issue Jun 17, 2024 · 1 comment

Comments

@Bearfinn
Copy link

There's one of my use case where I want to infer types from contentTypeId

For example,

const getEntries = (contentTypeId: ContentTypeId) => {
   return contentfulApi.getEntries<InferEntrySkeletonFromContentTypeId>(...)
}

I'm asking if this feature exist for this before, if not, I'm happy to take it and open a PR for it.

@marcolink
Copy link
Collaborator

Hi @Bearfinn,
please feel free to suggest an implementation for it :)

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

No branches or pull requests

2 participants