Skip to content

Commit 234235f

Browse files
committed
set parse result data type to string array default
1 parent b25ac12 commit 234235f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/useCSVReader.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export interface ProgressBarComponentProps {
7070
}
7171

7272
function useCSVReaderComponent<
73-
T = void,
74-
E extends HTMLDivElement | HTMLButtonElement = HTMLDivElement,
73+
T,
74+
E extends HTMLDivElement | HTMLButtonElement,
7575
>() {
7676
const CSVReaderComponent = ({
7777
children,
@@ -667,7 +667,7 @@ function useCSVReaderComponent<
667667
* @see {@link https://react-papaparse.js.org/docs#local-files Usage with Local Files}
668668
*/
669669
export function useCSVReader<
670-
T = void,
670+
T = string,
671671
E extends HTMLDivElement | HTMLButtonElement = HTMLDivElement,
672672
>() {
673673
const CSVReader = useCSVReaderComponent<T, E>();

0 commit comments

Comments
 (0)