microsoft / powerbi-client-react

Power BI for React which provides components and services to enabling developers to easily embed Power BI reports into their applications.
MIT License
310 stars 98 forks source link

getSlicers() on class Page return type incorrect #99

Closed m2icd closed 9 months ago

m2icd commented 1 year ago

I noticed getSlicers() is declared to return Promise<IVisual[]> but in reality, like getVisuals(), it returns Promise<VisualDescriptor[]>. I can make successful calls like getSlicerState() and exportData() even though my typescript is telling me I shouldn't be able to.

v-MadhavC commented 12 months ago

We tried to reproduce this issue, but we're not facing typescript error while using either getSlicers() or getSlicerState() API. We tried using the API in our Developer Sandbox typescript editor and not facing any errors.

image

image

Please provide additional details regarding how you are using these methods and some code snapshots can help us better understand the issue.

may-hartov commented 9 months ago

Unable to reproduce the issue