From 29ac5a81d5d20e876bc9632ec1244357a38b34d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andi=20P=C3=A4tzold?= Date: Fri, 8 Apr 2022 13:14:39 +0200 Subject: [PATCH] fix: use PropsWithChildren @types/react v17 added the children prop automatically. This changed with v18. Now, PropsWithChildren needs to be manually added. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 553f67de..e4f182b5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -89,7 +89,7 @@ declare module 'react-helmet-async' { }; } - export class HelmetProvider extends React.Component { + export class HelmetProvider extends React.Component> { static canUseDOM: boolean; } }