Skip to content

Commit

Permalink
chore: use IconDescriptor type from @carbon/icon-helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Jun 9, 2024
1 parent 8d1363e commit fcad3b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
declare module "@carbon/icons" {
import type IconDescriptor from "@carbon/icon-helpers/lib/types";

export type ModuleName = string;

export interface IconOutput {
Expand All @@ -13,7 +15,7 @@ declare module "@carbon/icons" {
width: number;
height: number;
};
content: { elem: string; attrs: object }[];
content: IconDescriptor[];
name: string;
size: number;
};
Expand Down

0 comments on commit fcad3b0

Please sign in to comment.