Fix lint errors

This commit is contained in:
Ali Taheri Moghaddar
2017-05-14 14:37:39 +04:30
parent a0d4ebcb74
commit 38c47c7e19

View File

@@ -17,30 +17,30 @@ declare namespace FileInput {
/**
* what format the `FileReader` should read the file as
* (i.e., `'buffer'`, `'binary'`, `'url'`, `'text'`).
*
*
* Defaults to `'url'`.
*/
as?: Format;
/**
* Callback function called when the files are choosen by the user.
*
*
* Results will be an array of arrays, the size of which depending
* on how many files were selected.
*
*
* Each result will be an array of two items:
*
*
* `progressEvent`: `result[0]` is a `ProgressEvent` object.
* You can retrieve the raw results at `progressEvent.target.result`
* among other things.
*
*
* `file`: `result[1]` is a `File` object. You can retrieve the file name
* at file.name among other things.
*
*
* @param event The event that triggered file changes
* @param results The array of files
*/
onChange: (event: React.SyntheticEvent<any>, results: Result[]) => void;
onChange(event: React.SyntheticEvent<any>, results: Result[]): void;
}
}