UNPKG

@mui/x-charts

Version:

The community edition of the charts components (MUI X).

3 lines (2 loc) 293 B
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>; export type DefaultizedProps<P extends {}, RequiredProps extends keyof P, AdditionalProps extends {} = {}> = Omit<P, RequiredProps | keyof AdditionalProps> & Required<Pick<P, RequiredProps>> & AdditionalProps;