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';
4
4
import { createSimpleParserMiddleware } from './middlewares/simpleParserMiddleware' ;
5
5
import { State } from './models/state' ;
6
6
7
- interface Props < T > {
7
+ export interface Props < T > {
8
8
onChange ?: ( value : T [ ] ) => void ;
9
9
columns : ColumnsType < T > ;
10
10
}
Original file line number Diff line number Diff line change 1
1
import { TextareaInput } from './components/inputs/TextareaInput' ;
2
2
import { 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' ;
6
4
import { PropsWithChildren } from 'react' ;
7
5
8
- interface Props < T > {
9
- onChange ?: ( value : T [ ] ) => void ;
10
- columns : ColumnsType < T > ;
11
- }
12
-
13
6
export function DSVImport < T extends { [ key : string ] : string } > ( props : PropsWithChildren < Props < T > > ) {
14
7
return Import < T > ( props ) ;
15
8
}
You can’t perform that action at this time.
0 commit comments