File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { getDSVImportContext } from './features/context';
44import { createSimpleParserMiddleware } from './middlewares/simpleParserMiddleware' ;
55import { State } from './models/state' ;
66
7- interface Props < T > {
7+ export interface Props < T > {
88 onChange ?: ( value : T [ ] ) => void ;
99 columns : ColumnsType < T > ;
1010}
Original file line number Diff line number Diff line change 11import { TextareaInput } from './components/inputs/TextareaInput' ;
22import { TablePreview } from './components/previews/TablePreview' ;
3- import { DSVImport as Import } from './DSVImport' ;
4-
5- import { ColumnsType } from './models/column' ;
3+ import { DSVImport as Import , Props } from './DSVImport' ;
64import { PropsWithChildren } from 'react' ;
75
8- interface Props < T > {
9- onChange ?: ( value : T [ ] ) => void ;
10- columns : ColumnsType < T > ;
11- }
12-
136export function DSVImport < T extends { [ key : string ] : string } > ( props : PropsWithChildren < Props < T > > ) {
147 return Import < T > ( props ) ;
158}
You can’t perform that action at this time.
0 commit comments