File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,18 @@ function exportHandler(snapshots: []) {
31
31
URL . revokeObjectURL ( fileDownload . href ) ;
32
32
}
33
33
34
- function importHandler ( dispatch : ( a : any ) => void ) {
34
+ function importHandler ( dispatch : ( a : unknown ) => void ) {
35
35
const fileUpload = document . createElement ( 'input' ) ;
36
36
fileUpload . setAttribute ( 'type' , 'file' ) ;
37
37
38
- fileUpload . onchange = ( ) => {
38
+ fileUpload . onchange = ( e ) => {
39
39
const reader = new FileReader ( ) ;
40
40
reader . onload = ( ) => {
41
41
const test = reader . result . toString ( ) ;
42
42
return dispatch ( importSnapshots ( JSON . parse ( test ) ) ) ;
43
43
} ;
44
- if ( event . target . hasOwnProperty ( 'files' ) ) {
45
- const eventFiles : any = event . target ;
44
+ if ( e . target . hasOwnProperty ( 'files' ) ) {
45
+ const eventFiles : unknown = e . target ;
46
46
reader . readAsText ( eventFiles . files [ 0 ] ) ;
47
47
}
48
48
} ;
You can’t perform that action at this time.
0 commit comments