react-elegant-ui
Version:
Elegant UI components, made by BEM best practices for react
12 lines (11 loc) • 384 B
TypeScript
/**
* Merge react props
*/
export declare const mergeProps: <P extends {}>(...args: (P | undefined)[]) => P;
/**
* Merge react props in dictionary
*
* It useful when you have object which contains objects with props,
* for example if you use context with props to some components
*/
export declare const mergePropsInDictionary: <P extends {}>(...args: (P | undefined)[]) => P;