UNPKG

reaviz

Version:

Data Visualization using React

8 lines (7 loc) 344 B
/** * Merges default props with props and returns a new object, filtering out undefined values to keep original behavior. * @param defaultProps - The default props to merge. * @param props - The props to merge. * @returns The merged props. */ export declare const mergeDefaultProps: <T>(defaultProps: Partial<T>, props?: Partial<T>) => T;