Export DataType for typescript use in DataTable


Topic: Export DataType for typescript use in DataTable

jammerxd2 pro premium priority asked a year 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 a year ago

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


jammerxd2 pro premium priority commented a year 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 a year 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

Open

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: MDB5 6.3.0
  • Device: PC
  • Browser: Firefox
  • OS: Windows 11
  • Provided sample code: No
  • Provided link: No
Tags