UNPKG

502 BTypeScriptView Raw
1import * as React from 'react';
2export type EventHandlers = Record<string, React.EventHandler<any>>;
3export type WithOptionalOwnerState<T extends {
4 ownerState: unknown;
5}> = Omit<T, 'ownerState'> & Partial<Pick<T, 'ownerState'>>;
6export type SlotComponentProps<TSlotComponent extends React.ElementType, TOverrides, TOwnerState> = (Partial<React.ComponentPropsWithRef<TSlotComponent>> & TOverrides) | ((ownerState: TOwnerState) => Partial<React.ComponentPropsWithRef<TSlotComponent>> & TOverrides);
7
\No newline at end of file