mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 20:09:35 +00:00
feat(types): loosen type for Carbon icons #806
This commit is contained in:
parent
1581bc0122
commit
fcfe3c3ae4
37 changed files with 160 additions and 153 deletions
4
types/UIShell/GlobalHeader/Header.d.ts
vendored
4
types/UIShell/GlobalHeader/Header.d.ts
vendored
|
@ -65,13 +65,13 @@ export interface HeaderProps
|
|||
* Specify the icon from `carbon-icons-svelte` to render for the closed state
|
||||
* Defaults to `Menu20`
|
||||
*/
|
||||
iconMenu?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
iconMenu?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render for the opened state
|
||||
* Defaults to `Close20`
|
||||
*/
|
||||
iconClose?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
iconClose?: typeof import("svelte").SvelteComponent;
|
||||
}
|
||||
|
||||
export default class Header extends SvelteComponentTyped<
|
||||
|
|
2
types/UIShell/GlobalHeader/HeaderAction.d.ts
vendored
2
types/UIShell/GlobalHeader/HeaderAction.d.ts
vendored
|
@ -18,7 +18,7 @@ export interface HeaderActionProps
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Specify the close icon from `carbon-icons-svelte` to render
|
||||
|
|
|
@ -17,7 +17,7 @@ export interface HeaderActionLinkProps
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML anchor element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue