Turn File into Typescript Type in React

Job ID: 31443451

Budget: $10 – $30 CAD

I need to upload a file with react and turn it into the FileObject Below. Can someone help with this?

export interface FileObject<T> {
content: T;
name: string;
size: number;
sliceFile(range: Range): Promise<ArrayBuffer | Blob | Buffer>;
}
Related categories: JavaScript React.js Typescript