From e5de6fcc1bef6dadb94f8f5ef24301a8fbefd846 Mon Sep 17 00:00:00 2001 From: Dobes Vandermeer Date: Sat, 17 May 2025 17:24:01 -0700 Subject: [PATCH] Update type of inputRef prop The inputRef prop accepted an object ref in the implementation, but the types indicated it would only accept a function. --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;