Skip to content

Commit

Permalink
feat: make AdditionalProps in IconOptions type optional (#7149)
Browse files Browse the repository at this point in the history
  • Loading branch information
alperari authored Sep 10, 2024
1 parent e1496ae commit 849ae9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/utils/utils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export declare namespace ZIndexUtils {
* @template ComponentProps Props from the owning component.
* @template AdditionalProps Any custom properties of an icon like SortIcon of the Datatable for example.
*/
export type IconOptions<ComponentProps, AdditionalProps> = AdditionalProps & {
export type IconOptions<ComponentProps, AdditionalProps = NonNullable<unknown>> = AdditionalProps & {
/**
* Icon specific properties. Size property allows FontAwesome to work properly.
* @type {(React.HTMLProps<unknown> & { size?: string }) | (React.SVGProps<unknown> & { size?: string })}
Expand Down

0 comments on commit 849ae9f

Please sign in to comment.