bostrom/text-to-image

Optional config is not optional

Opened this issue · 1 comments

Version of the library
5.2.0

Describe the bug
While the type declaration shows each element is optional, the GenerateOptions config itself is still required.

To Reproduce
Link to codesandbox.io or a snippet that will showcase the issue. Use this sandbox as base.
I'm not doing all of that. The error comes from writing something like this in TS: this.#signatureImage = await textToImage.generate(this.signature)

Expected behavior
No error

Screenshots
If applicable, add screenshots to help explain your problem.
Screen Shot 2022-07-08 at 5 39 25 PM

Additional context
Add any other context about the problem here.

This has been fixed in the beta branch and will be published in the next release.