From fcad3b0ba6069f10301545186f8de5deb11a86a0 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sun, 9 Jun 2024 14:39:31 -0700 Subject: [PATCH] chore: use `IconDescriptor` type from `@carbon/icon-helpers` --- src/global.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/global.d.ts b/src/global.d.ts index ce80049..f314a46 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -1,4 +1,6 @@ declare module "@carbon/icons" { + import type IconDescriptor from "@carbon/icon-helpers/lib/types"; + export type ModuleName = string; export interface IconOutput { @@ -13,7 +15,7 @@ declare module "@carbon/icons" { width: number; height: number; }; - content: { elem: string; attrs: object }[]; + content: IconDescriptor[]; name: string; size: number; };