-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Issue with TypeScript type definitions #1855
Comments
My workaround for the time being is to cast my options as const opts: Partial<Options> = {
// my options, nicely typechecked
};
html2canvas(body, opts as Options); |
Can confirm that Angular 7 build is failing with 1.0.0-rc.2. Just resolved this issue for our team. 1.0.0-rc.1 worked for us, but we're playing it safe and went back to our initial version of 1.0.0-alpha.12. Error we received seems to have to do with Error produced:
Code for html2canvas is as follows:
|
Pretty much all CloneOptions, RenderOptions and Options interface properties should be optional or at least when declaring Options type you should use "|" instead of "&"
The text was updated successfully, but these errors were encountered: