From 5ae85308962c9cdc664bfd769cac6aaccfb256e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Martin?= Date: Sun, 21 Sep 2025 19:07:38 +0200 Subject: [PATCH] Fix TypeScript type error in example code Without the `| null`, the following error appears during compilation: ``` TS2322: Type RefObject is not assignable to type RefObject Type HTMLDivElement | null is not assignable to type HTMLDivElement Type null is not assignable to type HTMLDivElement ``` --- docs/01-app/03-api-reference/03-file-conventions/error.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/01-app/03-api-reference/03-file-conventions/error.mdx b/docs/01-app/03-api-reference/03-file-conventions/error.mdx index fba5b9382caee..0a86e3ffe1eee 100644 --- a/docs/01-app/03-api-reference/03-file-conventions/error.mdx +++ b/docs/01-app/03-api-reference/03-file-conventions/error.mdx @@ -219,7 +219,7 @@ export class GracefullyDegradingErrorBoundary extends Component< ErrorBoundaryProps, ErrorBoundaryState > { - private contentRef: React.RefObject + private contentRef: React.RefObject constructor(props: ErrorBoundaryProps) { super(props)