diff --git a/index.d.ts b/index.d.ts index 29b0195..ecd7c6e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,5 @@ declare module 'react-s3-uploader' { - import { Component } from 'react'; + import { Component, Ref } from 'react'; export interface S3Response { signedUrl: string; @@ -29,7 +29,7 @@ declare module 'react-s3-uploader' { uploadRequestHeaders?: object; contentDisposition?: string; server?: string; - inputRef?: (ref: HTMLInputElement) => any; + inputRef?: Ref; autoUpload?: boolean; scrubFilename?: (filename: string) => string; [key: string]: any;