Hi, doing some unit tests I found some inconsistencies between the object that arrives in the event
https://www.flexmonster.com/api/cellclick/
and the object
https://www.flexmonster.com/api/cell-object/
at the typescript type level in the file
node_modules\flexmonster\types\flexmonster.d.ts
1. recordId is defined as recordId?: string | string[]; but in reality it is any : any[] as per documentation
2. Hierarchy.label arrives as string but it is in the type is string[]
3. measure.availableAggregations does not exist in the type.
Obviously these are all things that I can skip with a ts-ignore, but I wanted to point it out to you.
Thanks
Hello,
Thank you for pointing out these.
We have reviewed the inconsistencies you mentioned and can confirm that they are present in the current version of flexmonster.d.ts
. Our team will provide a fix in one of the future minor releases, ETA May 12th.
Feel free to contact us if any other questions arise.
Best Regards,
Maskym
Hello,
We are happy to let you know that we have fixed the reported issues in flexmonster.d.ts
. The type of the recordId
property in the CellData
interface and the type of the label
property in the Hierarchy
interface were fixed, and missing properties were added to the MeasureObject
interface. This is available in the 2.9.103 version of Flexmonster: https://www.flexmonster.com/release-notes/version-2-9-103/
You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/
Please let us know if the fix works fine for you.
Best regards,
Maksym
Hello,
Hope you are doing well.
Our team is wondering if the updated type definitions from version 2.9.103 are working well for you.
We are looking forward to hearing your feedback.
Best regards,
Maksym