fixup! 🐛(fix) add react-aria overlays type shim

This commit is contained in:
Cyril
2026-01-23 11:06:40 +01:00
parent 04ceb5d568
commit e1c6fb10f3
+15 -2
View File
@@ -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;
}