jbetancur / react-data-table-component

A responsive table library with built-in sorting, pagination, selection, expandable rows, and customizable styling.
https://react-data-table-component.netlify.app
Apache License 2.0
2.03k stars 409 forks source link

Unable to Export Types from "react-data-table-component/dist/src/DataTable/types" #1240

Open mayur1301 opened 2 months ago

mayur1301 commented 2 months ago

Issue Check list

Description

I am experiencing an issue while trying to export types from the react-data-table-component library. I have created a component using the package and I am trying to export the types from the "react-data-table-component/dist/src/DataTable/types" so that anyone using the component can access these types.

Steps to Reproduce:

  1. Attempt to export types using the following statement:

    export * from "react-data-table-component/dist/src/DataTable/types";

    OR

    export *  as DataTableTypes from "react-data-table-component/dist/src/DataTable/types";
    • This results in a "module not found" error.

Expected Behavior:

Actual Behavior:

Request for Assistance:

I am seeking guidance on the correct approach to export types from the react-data-table-component library, specifically from the path "react-data-table-component/dist/src/DataTable/types".

Versions (please complete the following information)