diff --git a/code/lib/types/src/modules/api.ts b/code/lib/types/src/modules/api.ts index 657665ffc15a..ad8c0d838f11 100644 --- a/code/lib/types/src/modules/api.ts +++ b/code/lib/types/src/modules/api.ts @@ -123,7 +123,7 @@ interface OnClearOptions { /** * @deprecated Use ReactNode for the icon instead. */ -interface OldIconType { +interface DeprecatedIconType { name: string; color?: string; } @@ -134,7 +134,7 @@ export interface API_Notification { headline: string; subHeadline?: string | any; }; - icon?: OldIconType | React.ReactNode; + icon?: React.ReactNode | DeprecatedIconType; onClear?: (options: OnClearOptions) => void; }