From 13d5cf7ab57fdb59e5407e8d76ec4b8cea21fada Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Wed, 26 Jul 2023 03:10:10 +0900 Subject: [PATCH] fix: remove unnecessary PropsWithRef type (#158) --- src/ErrorBoundary.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/ErrorBoundary.ts b/src/ErrorBoundary.ts index a1243b2..3978ef7 100644 --- a/src/ErrorBoundary.ts +++ b/src/ErrorBoundary.ts @@ -1,10 +1,4 @@ -import { - Component, - createElement, - ErrorInfo, - isValidElement, - PropsWithRef, -} from "react"; +import { Component, createElement, ErrorInfo, isValidElement } from "react"; import { ErrorBoundaryContext } from "./ErrorBoundaryContext"; import { ErrorBoundaryProps, FallbackProps } from "./types"; @@ -16,7 +10,7 @@ const initialState: ErrorBoundaryState = { }; export class ErrorBoundary extends Component< - PropsWithRef, + ErrorBoundaryProps, ErrorBoundaryState > { constructor(props: ErrorBoundaryProps) {