FrontPastel/node_modules/@mui/utils/resolveProps/resolveProps.d.ts

13 lines
446 B
TypeScript
Raw Normal View History

2024-04-17 13:55:11 +00:00
/**
* Add keys, values of `defaultProps` that does not exist in `props`
* @param {object} defaultProps
* @param {object} props
* @returns {object} resolved props
*/
export default function resolveProps<T extends {
components?: Record<string, unknown>;
componentsProps?: Record<string, unknown>;
slots?: Record<string, unknown>;
slotProps?: Record<string, unknown>;
} & Record<string, unknown>>(defaultProps: T, props: T): T;