From 299cbf083f330b5ec05eb770f746c0fe1a567d8c Mon Sep 17 00:00:00 2001 From: Jack Wakefield Date: Wed, 22 Jan 2025 17:34:28 +0000 Subject: [PATCH] Change innerRef type from RefObject to Ref --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 61fe034..ae148aa 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,4 +1,4 @@ -import { ReactNode, RefObject, SVGProps } from 'react'; +import { ReactNode, Ref, SVGProps } from 'react'; import { STATUS } from './config'; @@ -14,7 +14,7 @@ export type Props = Simplify< children?: ReactNode; description?: string; fetchOptions?: RequestInit; - innerRef?: RefObject; + innerRef?: Ref; loader?: ReactNode; onError?: ErrorCallback; onLoad?: LoadCallback;