Topic: Export DataType for typescript use in DataTable

jammerxd2 priority asked 9 months ago


Expected behavior

I can create the required structures needed to use the MDBDataTable.

Actual behavior

I cannot create the required structures needed to use the MDBDataTable due to the DataType type not being exported from dist/types/pro/data/Datatable

Resources (screenshots, code snippets etc.)

For me the fix was to go into dist/types/pro/data/Datatable and add DataType to the export line


Mateusz Lazaru staff commented 9 months ago

I'll add a task to check types exports, thanks for the suggestion.


jammerxd2 priority commented 9 months ago

I'm using typescript and typescript was complaining about the state variable not matching the type for the MDBDatatable component data prop.


Grzegorz Bujański staff commented 9 months ago

Can you show the code of your component? We'll check it



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 6.3.0
  • Device: PC
  • Browser: Firefox
  • OS: Windows 11
  • Provided sample code: Yes
  • Provided link: No