From ba21cf91161eec88dda01b8775bfae808cd6b167 Mon Sep 17 00:00:00 2001 From: Lucas Hilgert Date: Wed, 6 Dec 2023 09:18:33 +0100 Subject: [PATCH] fix owner State --- .../mui-material-next/src/Badge/Badge.types.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/mui-material-next/src/Badge/Badge.types.ts b/packages/mui-material-next/src/Badge/Badge.types.ts index d6cedf00290320..fe5eaae5429514 100644 --- a/packages/mui-material-next/src/Badge/Badge.types.ts +++ b/packages/mui-material-next/src/Badge/Badge.types.ts @@ -1,6 +1,6 @@ import * as React from 'react'; import { SxProps } from '@mui/system'; -import { OverridableStringUnion, OverrideProps } from '@mui/types'; +import { OverridableStringUnion, OverrideProps, PartiallyRequired } from '@mui/types'; import { SlotComponentProps } from '@mui/base'; import { Theme } from '../styles'; import { BadgeClasses } from './badgeClasses'; @@ -126,10 +126,8 @@ export type BadgeProps< AdditionalProps = {}, > = OverrideProps, RootComponent>; -export interface BadgeOwnerState extends BadgeProps { - size: NonNullable; - variant: NonNullable; - anchorOrigin: NonNullable; - overlap: NonNullable; - color: NonNullable; -} +export interface BadgeOwnerState + extends PartiallyRequired< + BadgeProps, + 'anchorOrigin' | 'color' | 'overlap' | 'size' | 'variant' + > {}