Skip to content

Commit 13d5cf7

Browse files
authored
fix: remove unnecessary PropsWithRef type (#158)
1 parent a4c8f9b commit 13d5cf7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/ErrorBoundary.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import {
2-
Component,
3-
createElement,
4-
ErrorInfo,
5-
isValidElement,
6-
PropsWithRef,
7-
} from "react";
1+
import { Component, createElement, ErrorInfo, isValidElement } from "react";
82
import { ErrorBoundaryContext } from "./ErrorBoundaryContext";
93
import { ErrorBoundaryProps, FallbackProps } from "./types";
104

@@ -16,7 +10,7 @@ const initialState: ErrorBoundaryState = {
1610
};
1711

1812
export class ErrorBoundary extends Component<
19-
PropsWithRef<ErrorBoundaryProps>,
13+
ErrorBoundaryProps,
2014
ErrorBoundaryState
2115
> {
2216
constructor(props: ErrorBoundaryProps) {

0 commit comments

Comments
 (0)