OK, maybe not all the credit is owed there. Check my fork again, notice that I upgraded both the built-in capnp schema files as well as the gulpfile. You should be able to do a clean "yarn build" after that point.
Node v15.6.0 | Yarn 1.19.1 $ gulp --version CLI version: 2.3.0 Local version: 4.0.2 On Monday, March 29, 2021 at 3:02:51 AM UTC+8 [email protected] wrote: > Quoting Ryan Patterson (2021-03-25 22:04:01) > > > This might not be what you're looking for, but I took the > > fasterthanlime fork of capnp-ts and upgraded all of the dependencies, > > and in my test application I was able to use a go capnp server with a > > Typescript capnp client over web sockets. Relevant links: > > * [1]my updated fork of capnp-ts > > * [2]glue between capnp-ts and web sockets > > * [3]the original work on capnp-ts RPC (to whom the credit is owed) > > How did you build this, and how well does it actually work? I tried > forking the > fasterthanlime fork it myself, but it looked to me like it was left in a > broken > state; I fixed a few things on my own fork[1], but when running tsc > there are still a couple errors: > > $ tsc > packages/capnpc-ts/lib/generators.ts:931:9 - error TS2345: Argument of > type 'undefined' is not assignable to parameter of type 'readonly > Expression[]'. > > 931 __ // arguments > ~~ > > packages/capnpc-ts/lib/generators.ts:985:17 - error TS2345: Argument of > type 'undefined' is not assignable to parameter of type 'readonly > Expression[]'. > > 985 __ // parameters > ~~ > I assume those had been placeholders. Did you just plow ahead using the > generated code anyway (in which case I assume your schema didn't trigger > that case), or are you doing something that I'm missing when building? > > I had a heck of a time trying to get the gulpfile to work, and ended up > just giving up, since running tsc from the top level seemed to work with > some tweaking, modulo the obviously legitimate errors above. > > -Ian > > [1]: https://github.com/zenhack/capnp-ts/tree/rpc > -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/83caf638-062f-416b-b726-3c83742ace2fn%40googlegroups.com.
