diff --git a/components/lib/avatar/Avatar.d.ts b/components/lib/avatar/Avatar.d.ts index 2d27e5860e..b81e14a808 100644 --- a/components/lib/avatar/Avatar.d.ts +++ b/components/lib/avatar/Avatar.d.ts @@ -7,14 +7,12 @@ type AvatarShapeType = 'square' | 'circle'; type AvatarTemplateType = React.ReactNode | ((props: AvatarProps) => React.ReactNode); -export interface AvatarProps { +export interface AvatarProps extends Omit, HTMLDivElement>, 'ref'> { label?: string; icon?: IconType; image?: string; size?: AvatarSizeType; shape?: AvatarShapeType; - style?: object; - className?: string; template?: AvatarTemplateType; imageAlt?: string; onImageError?(event: React.SyntheticEvent): void; diff --git a/components/lib/badge/Badge.d.ts b/components/lib/badge/Badge.d.ts index cf30cacdfa..43f4128fc1 100644 --- a/components/lib/badge/Badge.d.ts +++ b/components/lib/badge/Badge.d.ts @@ -4,12 +4,10 @@ type BadgeSeverityType = 'success' | 'info' | 'warn' | 'error' | (string & {}); type BadgeSizeType = 'normal' | 'large' | 'xlarge'; -export interface BadgeProps { +export interface BadgeProps extends Omit, HTMLSpanElement>, 'ref'> { value?: any; severity?: BadgeSeverityType; size?: BadgeSizeType; - style?: object; - className?: string; children?: React.ReactNode; }