From e1c6fb10f31f4f6b894dce92f37e37acf9b0f0c3 Mon Sep 17 00:00:00 2001 From: Cyril Date: Fri, 23 Jan 2026 11:06:40 +0100 Subject: [PATCH] =?UTF-8?q?fixup!=20=F0=9F=90=9B(fix)=20add=20react-aria?= =?UTF-8?q?=20overlays=20type=20shim?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/@types/react-aria-overlays.d.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/frontend/@types/react-aria-overlays.d.ts b/src/frontend/@types/react-aria-overlays.d.ts index 6dd9fdcd..32907ac2 100644 --- a/src/frontend/@types/react-aria-overlays.d.ts +++ b/src/frontend/@types/react-aria-overlays.d.ts @@ -1,5 +1,18 @@ +import type * as React from 'react'; + declare module '@react-aria/overlays' { - export function useUNSAFE_PortalContext(): PortalProviderContextValue - export const UNSAFE_PortalProvider: (props: PortalProviderProps) => JSX.Element + export type PortalProviderContextValue = { + getContainer: () => HTMLElement | null; + }; + + export type PortalProviderProps = { + getContainer: () => HTMLElement | null; + children: React.ReactNode; + }; + + export function useUNSAFE_PortalContext(): PortalProviderContextValue; + export function UNSAFE_PortalProvider( + props: PortalProviderProps, + ): JSX.Element; }