message: fix(react-utils): update types
diff: @@ -2,14 +2,11 @@ import React from 'react'
  export type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>
  -/**
  - * Merge defaultProps into props
  - */
  -export const withDefaultProps = <U extends Record<string, any>, T extends Record<string, any>>(
  - props: U | undefined,
  - defaultProps?: T
  -) => {
  - if (!defaultProps) return props || {}
  +export const withDefaultProps = <DP extends Record<string, any>, ECP extends Partial<DP>>(
  + props: ECP | undefined,
  + defaultProps?: DP
  +): Omit<ECP, keyof DP> & Required<Pick<ECP, keyof DP>> => {
  + if (!defaultProps) return (props || {}) as any
  const mergedProps = { ...props }
  let propName
  @@ -21,9 +18,31 @@ export const withDefaultProps = <U extends Record<string, any>, T extends Record
  }
  }
  - return mergedProps
  + return mergedProps as any
  }
  +/**
  + * Merge defaultProps into props
  + */
  +// export const withDefaultProps = <U extends Record<string, any>, T extends Record<string, any>>(
  +// props: U | undefined,
  +// defaultProps?: T
  +// ) => {
  +// if (!defaultProps) return props || {}
  +
  +// const mergedProps = { ...props }
  +// let propName
  +
  +// for (propName in defaultProps) {
  +// if (mergedProps[propName] === undefined) {
  +// // @ts-ignore
  +// mergedProps[propName] = defaultProps[propName]
  +// }
  +// }
  +
  +// return mergedProps
  +// }
  +
  /**
  * Set ref into a React element.
  */
  