Topic: Export DataType for typescript use in DataTable
jammerxd2 priority asked 1 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
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- 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
Mateusz Lazaru staff commented 1 year ago
I'll add a task to check types exports, thanks for the suggestion.
jammerxd2 priority commented 1 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 1 year ago
Can you show the code of your component? We'll check it