Comments (7)
That is certainly possible. We have such an example in the connect-web repository here. Is this what you are looking for, or were you thinking of something different?
We will look into making this example available here as well. Thanks for the feedback!
from examples-es.
We are tracking this in https://linear.app/bufbuild/issue/TCN-334/add-a-vanilla-typescript-example-to-connect-web-integration
from examples-es.
That is certainly possible. We have such an example in the connect-web repository here. Is this what you are looking for, or were you thinking of something different?
We will look into making this example available here as well. Thanks for the feedback!
Thanks. That would be a good start.
Q: that example generates typescript files, is it possible to also generate js instead?
We are tracking this in ...
I don't have access to that link, but I'm subscribed to this github issue and will get notified when it is closed/resolved
from examples-es.
Q: that example generates typescript files, is it possible to also generate js instead?
Yes, you can simply remove the target
plugin option to do so. See here for an explanation of this option.
from examples-es.
@komuw Created an example using just plain JavaScript: https://github.com/bufbuild/connect-web-integration/tree/main/plain
from examples-es.
from examples-es.
that example generates typescript files, is it possible to generate js instead?
Yes, you can simply set the plugin option target=js
. See here for an explanation of this option.
TypeScript is a superset of ECMAScript, it simply adds a type system on top of JavaScript. Everything you can do in TypeScript, you can also do in plain JavaScript.
I encourage you to give the example a try! Just change the plugin option to generate JavaScript, and rename index.ts
to index.js
. You will have to remove a few pieces of TypeScript from index.js
so that it becomes valid JavaScript, but I can guarantee you that it works :)
from examples-es.
Related Issues (11)
- Request - Node client BiDi streaming example. HOT 3
- Add example for Next.js App Router
- [Question] Why connect protocol can work with a private protocol without any additional work? HOT 2
- react-native example doesn't appear to be working HOT 13
- Nextjs example ConnectError: Failed to parse URL (digest: undefined) HOT 8
- Next.js integration HOT 3
- Please add a golang server HOT 1
- Update sveletekit example HOT 1
- Improve coverage in CI HOT 1
- Remove `npx` from npm scripts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from examples-es.