From 840a1143b8d46d6112726517a32b35baf7f65c22 Mon Sep 17 00:00:00 2001 From: Romuald Brillout Date: Sat, 28 Dec 2024 10:32:23 +0100 Subject: [PATCH] fix: align ReactNode types --- packages/vike-react/src/components/Head/Head-server.ts | 1 + packages/vike-react/src/types/Config.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/vike-react/src/components/Head/Head-server.ts b/packages/vike-react/src/components/Head/Head-server.ts index 10fcb6d2..66e903c7 100644 --- a/packages/vike-react/src/components/Head/Head-server.ts +++ b/packages/vike-react/src/components/Head/Head-server.ts @@ -1,6 +1,7 @@ export { Head } import { useConfig } from '../../hooks/useConfig/useConfig-server.js' +import type React from 'react' /** * Add arbitrary `` tags. diff --git a/packages/vike-react/src/types/Config.ts b/packages/vike-react/src/types/Config.ts index 27352940..9f077b07 100644 --- a/packages/vike-react/src/types/Config.ts +++ b/packages/vike-react/src/types/Config.ts @@ -2,6 +2,7 @@ import type { ImportString, PageContextServer, PageContext, PageContextClient } import type { TagAttributes } from '../utils/getTagAttributesString.js' import type { Viewport } from '../integration/onRenderHtml.js' import type { ConfigsCumulative } from '../hooks/useConfig/configsCumulative.js' +import type React from 'react' // https://vike.dev/meta#typescript declare global {