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: []) {
3131 URL . revokeObjectURL ( fileDownload . href ) ;
3232}
3333
34- function importHandler ( dispatch : ( a : any ) => void ) {
34+ function importHandler ( dispatch : ( a : unknown ) => void ) {
3535 const fileUpload = document . createElement ( 'input' ) ;
3636 fileUpload . setAttribute ( 'type' , 'file' ) ;
3737
38- fileUpload . onchange = ( ) => {
38+ fileUpload . onchange = ( e ) => {
3939 const reader = new FileReader ( ) ;
4040 reader . onload = ( ) => {
4141 const test = reader . result . toString ( ) ;
4242 return dispatch ( importSnapshots ( JSON . parse ( test ) ) ) ;
4343 } ;
44- if ( event . target . hasOwnProperty ( 'files' ) ) {
45- const eventFiles : any = event . target ;
44+ if ( e . target . hasOwnProperty ( 'files' ) ) {
45+ const eventFiles : unknown = e . target ;
4646 reader . readAsText ( eventFiles . files [ 0 ] ) ;
4747 }
4848 } ;
You can’t perform that action at this time.
0 commit comments