restatedev / sdk-typescript

Restate SDK for JavaScript/Typescript
MIT License
46 stars 8 forks source link

Raw/Serde payloads in context client #407

Closed slinkydeveloper closed 2 weeks ago

slinkydeveloper commented 1 month ago

We currently have an internal method ctx.invoke that lets people invoke services with raw payloads. On the ingress side, we have an option raw that allows people to achieve the same goal.

It would be nice to let people write some code like ctx.serviceClient(greeter).transcribeAudio(new Uint8Array([1, 2, 3])), or something along the same lines, and also unify such experience across ingress and context client.

slinkydeveloper commented 1 month ago

Discord thread https://discord.com/channels/1128210118216007792/1262172487366606878

slinkydeveloper commented 2 weeks ago

Solved by https://github.com/restatedev/sdk-typescript/commit/38fa97cfca0b3aaa970ce843c15f918c9541b718