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

Generate separately types files from mesh build command #4299

Closed
ThePlenkov opened this issue Aug 13, 2022 · 3 comments
Closed

Generate separately types files from mesh build command #4299

ThePlenkov opened this issue Aug 13, 2022 · 3 comments

Comments

@ThePlenkov
Copy link

Hi!

Let me describe the case to make it clear why I need this. Our company has protobuf-based service, but not grpc.

By use of grpc module I managed to build easily graphql schema. Despite I cannot use directly ( our API cannot decode grpc request ) - I can create a new graphql handler with own resolver.

In that resolver I'm exporting graphql schema, generated with grpc module along with generated TypeScript types.

However what I don't like - is that index.ts contains not only types but also grpc-relevant resolvers.

So in my case those additional lines are not really needed. So having an opportunity to have separately types.d.ts along with index.ts would entirely solve my issue?

Do you think is possible now?

Is it difficult to adjust mesh build command to support this feature?

Thank you!

@theguild-bot theguild-bot mentioned this issue Aug 21, 2022
@ardatan
Copy link
Owner

ardatan commented Sep 2, 2022

Hi @ThePlenkov !
This is available in the latest release!

@ardatan ardatan closed this as completed Sep 2, 2022
@ThePlenkov
Copy link
Author

@ardatan Thank you! Could you please advise - do I need to do something special - or it will already work by default? Thank you!

@ardatan
Copy link
Owner

ardatan commented Sep 2, 2022

It is available by default. You only need to update your packages to the latest.

@theguild-bot theguild-bot mentioned this issue Sep 28, 2023
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