Skip to content

Commit 26ab7cf

Browse files
committed
chore: replace Omit with Exclude for literal types
1 parent 4ae2fa8 commit 26ab7cf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Card/Card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type CardProps = React.HTMLAttributes<HTMLDivElement> &
1818
IComponentBaseProps & {
1919
size?: ComponentSize
2020
border?: boolean
21-
variant?: Omit<ComponentVariant, 'soft'> | 'border'
21+
variant?: Exclude<ComponentVariant, 'soft'> | 'border'
2222
imageFull?: boolean
2323

2424
side?: ComponentSize | boolean

src/PhoneMockup/PhoneMockup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { IComponentBaseProps, ComponentColor } from '../types'
66

77
export type PhoneMockupProps = React.HTMLAttributes<HTMLDivElement> &
88
IComponentBaseProps & {
9-
color?: Omit<ComponentColor, 'ghost'>
9+
color?: Exclude<ComponentColor, 'ghost'>
1010
innerProps?: React.HTMLAttributes<HTMLDivElement>
1111
innerRef?: React.Ref<HTMLDivElement>
1212
}

0 commit comments

Comments
 (0)