diff --git a/src/components/ErrorCapturer.tsx b/src/components/ErrorCapturer.tsx index ef3dd85..c22a9cb 100644 --- a/src/components/ErrorCapturer.tsx +++ b/src/components/ErrorCapturer.tsx @@ -1,7 +1,11 @@ -import {Component, ErrorInfo} from "react" +import {Component, ErrorInfo, ReactNode} from "react" import {logger} from "@gooditworks/monitoring" -class ErrorCapturer extends Component { +interface Props { + children: ReactNode +} + +class ErrorCapturer extends Component { // eslint-disable-next-line class-methods-use-this componentDidCatch(error: Error, info: ErrorInfo) { logger.captureException(error, {info})