From b5254cd21bb0323942df1cdf8bbd54e2f7ca392c Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Tue, 25 Jul 2023 21:07:58 +0200 Subject: [PATCH] Use React.RefAttributes instead of manually defined object --- src/AsyncButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AsyncButton.tsx b/src/AsyncButton.tsx index ad26f37..5aba15e 100644 --- a/src/AsyncButton.tsx +++ b/src/AsyncButton.tsx @@ -154,5 +154,5 @@ AsyncButton.propTypes = { }; export default AsyncButton as ( - props: AsyncButtonProps & { ref?: PolymorphicRef }, + props: AsyncButtonProps & React.RefAttributes>, ) => React.ReactElement | null; -- 2.51.2