my upload returns a fileList. I created an interface fileList and use it in useState to store the uploaded fileList.
`
Hello! I am really stuck for too long at this TS issue and would very much appreciate any hint :
my upload returns a fileList. I created an interface fileList and use it in useState to store the uploaded
interface FileList {
readonly length: number;
item(index: number): File | null;
[index: number]: File;
[Symbol.iterator](): IterableIterator<File>;
}````
const [fileList, setFileList] = useState<FileList | null>(null);
in the onChangeHandler on the input field, I set
`setFileList(files)`
and then get the following TS error:
`Argument of type '{}' is not assignable to parameter of type 'SetStateAction<FileList | null>'.ts(2345)
(parameter) files: {}`
what should I change in the Type declaration?