-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
to
type signature does not support UrlRequest
#25
Comments
Hm... I think I made it intentionally, to disable ability to set margins, because of warning on Gotenberg page
But I guess I missed orientation and paper size... |
So the orientation works (when simply casting to to any). I haven’t tried size or margins yet - will try this tonight. |
Just verified - all three elements (orientation, size, margins) work without any issue! |
Cool, thank you! |
Published version 0.6.3 with fixed typings for |
Thank you - this solves the issue! |
For the code:
TypeScript complains:
in the
url
line. The actually execution works fine.Could it be that the function overloading in to.ts lacks this additional signature?
(...opts: ConversionOptions[]): (request: UrlRequest) => UrlRequest
Let me know if I should create a PR!
Thanks
The text was updated successfully, but these errors were encountered: