Description
I found the following imperfect definitions in type definitions Plotly introduced recently (v4.0.0?), around toImage(), downloadImage() and config.toImageButtonOptions. This will hinder using these functions/option for TypeScript users (like me).
Can I send a PR for these? The PR won't include changes on executable code in JS; it will only modify *.d.ts files and maybe docstring parts in JS files.
Description
I found the following imperfect definitions in type definitions Plotly introduced recently (v4.0.0?), around
toImage(),downloadImage()andconfig.toImageButtonOptions. This will hinder using these functions/option for TypeScript users (like me).full-jsonexport format. A graph can be exported as JSON probably since v1.53.0 (see CHANGELOG.md or add format "full-json" to Plotly.toImage and Plotly.dowloadImage #4593) but this feature was not documented until very recently (docs: Add 'full-json' docs, examples graphing-library-docs#471).imageDataOnlyoption. This option is also very recently documented here.toImage()anddownloadImage()should be all optional. Currently some are required.Can I send a PR for these? The PR won't include changes on executable code in JS; it will only modify *.d.ts files and maybe docstring parts in JS files.