From 58993f63ba5e6f2a6b21dec8ed89f75464ead5ca Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Wed, 13 Mar 2024 16:44:54 +0000 Subject: [PATCH] Update api.ts --- code/lib/types/src/modules/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }