diff --git a/components/avatar/avatar.tsx b/components/avatar/avatar.tsx index f7707fe..c881443 100644 --- a/components/avatar/avatar.tsx +++ b/components/avatar/avatar.tsx @@ -21,8 +21,8 @@ const defaultProps = { className: '', } -type NativeAttrs = React.ImgHTMLAttributes | React.HTMLAttributes -export type AvatarProps = Props & typeof defaultProps & NativeAttrs +type NativeAttrs = React.ImgHTMLAttributes & React.HTMLAttributes +export type AvatarProps = Props & typeof defaultProps & Partial const getAvatarSize = (size: NormalSizes | number): string => { if (typeof size === 'number') return `${size}px`