☝️Small business or a startup? See if you qualify for our special offer.
+

CellDataObject Type Mismatch

Answered
sedApta asked on April 17, 2025

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

1 answer

Public
Maksym Diachenko Maksym Diachenko Flexmonster 6 days ago

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

Please login or Register to Submit Answer