diff --git a/src/contexts/RootProvider.tsx b/src/contexts/RootProvider.tsx index 6a216b7574..1a625dc952 100644 --- a/src/contexts/RootProvider.tsx +++ b/src/contexts/RootProvider.tsx @@ -8,11 +8,21 @@ import { NavigationProvider } from './Navigation'; import { SelectMultipleProvider } from './SelectMultiple'; import { SelectRangeProvider } from './SelectRange'; import { SelectSingleProvider } from './SelectSingle'; +import { DayPickerDefaultProps } from 'types/DayPickerDefault'; +import { DayPickerSingleProps } from 'types/DayPickerSingle'; +import { DayPickerMultipleProps } from 'types/DayPickerMultiple'; +import { DayPickerRangeProps } from 'types/DayPickerRange'; + +type RootContextProps = + | Partial + | Partial + | Partial + | Partial; /** The props of {@link RootProvider}. */ -export interface RootContext { +export type RootContext = RootContextProps & { children?: ReactNode; -} +}; /** Provide the value for all the context providers. */ export function RootProvider(props: RootContext): JSX.Element {