We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With v0.4.3, protoc-gen-connect-query generates the following TypeScript (with the plugin option target=ts):
protoc-gen-connect-query
target=ts
// ... export const ElizaService = { typeName: "connectrpc.eliza.v1.ElizaService", methods: { // elided } } as const; // ...
With the plugin option target=js, the plugin also generates as const, which is a syntax error in JavaScript.
target=js
as const
The text was updated successfully, but these errors were encountered:
Avoid as const in js extension (#167)
1c6d9a5
Fixes #166
paul-sachs
Successfully merging a pull request may close this issue.
With v0.4.3,
protoc-gen-connect-query
generates the following TypeScript (with the plugin optiontarget=ts
):With the plugin option
target=js
, the plugin also generatesas const
, which is a syntax error in JavaScript.The text was updated successfully, but these errors were encountered: