restatedev / sdk-typescript

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

ctx.invoke/invokeOneWay now accepts a serialization and deserialization function. #402

Closed slinkydeveloper closed 2 months ago

slinkydeveloper commented 2 months ago

This simplifies a bit the problem with CombineablePromise, where now we first transform the result deserializing it, and then we wrap it in a combineable promise. It also makes consistent that the ser/de concern is within the invoke/invokeOneWay, and not on the caller.