chore: update TreeView, HeaderAction icon types

This commit is contained in:
metonym 2021-10-15 16:34:01 -07:00
commit d080576c8a
6 changed files with 9 additions and 16 deletions

View file

@ -6,7 +6,7 @@ export type TreeNodeId = string | number;
export interface TreeNode {
id: TreeNodeId;
text: string;
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
icon?: typeof import("svelte").SvelteComponent;
disabled?: boolean;
expanded?: boolean;
}

View file

@ -23,7 +23,7 @@ export interface HeaderActionProps
/**
* Specify the close icon from `carbon-icons-svelte` to render
*/
closeIcon?: typeof import("carbon-icons-svelte").CarbonIcon;
closeIcon?: typeof import("svelte").SvelteComponent;
/**
* Specify the text