resonate-sdk-ts icon indicating copy to clipboard operation
resonate-sdk-ts copied to clipboard

Generator SDK

Open dfarr opened this issue 11 months ago • 0 comments

This is the minimal import requirements to use Resonate.

import { Resonate, Context, Info } from "@resonatehq/sdk";

You can choose to import either the "async" or "generator" flavour of these objects. Although there is some support for exports in package.json, this support is conditional on what the client specifies in the module field. To avoid confusion, we feel it would be better to expose our generator flavour as a standalone package.

@resonatehq/sdk: async flavour
@resonatehq/gen: generator flavour

Both packages should be defined in this repo and share much of the same underlying code. For the time being, we will only expose async.

dfarr avatar Mar 25 '24 19:03 dfarr