viclafouch / mui-file-input

A file input designed for the React library MUI
https://viclafouch.github.io/mui-file-input/
MIT License
77 stars 17 forks source link

Update Typescript example #19

Closed domenicomanna closed 1 year ago

domenicomanna commented 1 year ago

Previously, when copying the example into an IDE, the TS compiler would throw an error since the 'onChange' function emits a value that can be null. This change fixes that error.