Skip to content

Allow passing undefined to optional properties with exactOptionalPropertyTypes #574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 0.2.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 30 additions & 30 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,34 @@ type BackwardCompatibleOmit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K

export interface FontAwesomeIconProps extends BackwardCompatibleOmit<SVGAttributes<SVGSVGElement>, 'children' | 'mask' | 'transform'>, RefAttributes<SVGSVGElement> {
icon: IconProp
mask?: IconProp
maskId?: string
className?: string
color?: string
spin?: boolean
spinPulse?: boolean
spinReverse?: boolean
pulse?: boolean
beat?: boolean
fade?: boolean
beatFade?: boolean
bounce?: boolean
shake?: boolean
border?: boolean
fixedWidth?: boolean
inverse?: boolean
listItem?: boolean
flip?: FlipProp
size?: SizeProp
pull?: PullProp
rotation?: RotateProp
rotateBy?: boolean,
transform?: string | Transform
symbol?: FaSymbol
style?: CSSProperties
tabIndex?: number;
title?: string;
titleId?: string;
swapOpacity?: boolean;
widthAuto?: boolean
mask?: IconProp | undefined;
maskId?: string | undefined;
className?: string | undefined;
color?: string | undefined;
spin?: boolean | undefined;
spinPulse?: boolean | undefined;
spinReverse?: boolean | undefined;
pulse?: boolean | undefined;
beat?: boolean | undefined;
fade?: boolean | undefined;
beatFade?: boolean | undefined;
bounce?: boolean | undefined;
shake?: boolean | undefined;
border?: boolean | undefined;
fixedWidth?: boolean | undefined;
inverse?: boolean | undefined;
listItem?: boolean | undefined;
flip?: FlipProp | undefined;
size?: SizeProp | undefined;
pull?: PullProp | undefined;
rotation?: RotateProp | undefined;
rotateBy?: boolean | undefined;
transform?: string | Transform | undefined;
symbol?: FaSymbol | undefined;
style?: CSSProperties | undefined;
tabIndex?: number; | undefined;
title?: string; | undefined;
titleId?: string; | undefined;
swapOpacity?: boolean; | undefined;
widthAuto?: boolean | undefined;
}