Optional config is not optional
Opened this issue · 1 comments
revjtanton commented
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.
Additional context
Add any other context about the problem here.
bostrom commented
This has been fixed in the beta branch and will be published in the next release.