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

How to generate typescript files for services instead of js ones? Is there a way to avoid require using import instead? #274

Open
frederikhors opened this issue Apr 7, 2021 · 3 comments
Labels

Comments

@frederikhors
Copy link

frederikhors commented Apr 7, 2021

I'm new to this proto* world!

Is there a way to automagically generate .ts (typescript) files for services instead of .js (javascript) files?

I'm stucked using it with vitejs.dev or any webpack bundler because of the requires.

@thesayyn
Copy link

An alternative version is available which is maintained by me and a few other people that generate a typescript source file directly instead of combining javascript with d.ts. You can take look and see how it compares to this plugin.

https://github.com/thesayyn/protoc-gen-ts

@randuck-dev
Copy link

I am also interested in the future of this plugin and whether it will be able to generate code that is ES6 compliant. Same use case as OP where I am attempting to use the generated code with vitejs.

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants