I believe this can be fixed by adding a simple children: React.ReactNode; to export interface FullScreenProps
// index.d.ts
import React from 'react';
export interface FullScreenHandle {
active: boolean;
enter: () => Promise<void>;
exit: () => Promise<void>;
node: React.MutableRefObject<HTMLDivElement | null>;
}
export interface FullScreenProps {
handle: FullScreenHandle;
onChange?: (state: boolean, handle: FullScreenHandle) => void;
children: React.ReactNode;
className?: string;
}
export declare function useFullScreenHandle(): FullScreenHandle;
export declare const FullScreen: React.FC<FullScreenProps>;