react-apexcharts icon indicating copy to clipboard operation
react-apexcharts copied to clipboard

options has the wrong type

Open isaiahtaylorhh opened this issue 5 years ago • 1 comments

From the .d.ts file:

options?: object

If you try to create a component without the options object, you get the error at runtime that options is marked required.

It would also be nice to have that type spelled out explicitly rather than simply object. It would also be nice for series to be spelled out rather than Array<any>.

isaiahtaylorhh avatar May 07 '20 22:05 isaiahtaylorhh

The chart renders fine with an empty options object. So perhaps the runtime check can be disabled for the option prop?

j-a-h-i-r avatar Jun 23 '21 08:06 j-a-h-i-r