mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(types): prefix icon type with "typeof"
This commit is contained in:
parent
26ce330e1d
commit
7a1480f0ed
16 changed files with 64 additions and 49 deletions
2
types/Button/Button.d.ts
vendored
2
types/Button/Button.d.ts
vendored
|
@ -22,7 +22,7 @@ export interface ButtonProps {
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
/**
|
||||
* Specify the ARIA label for the button icon
|
||||
|
|
2
types/Icon/Icon.d.ts
vendored
2
types/Icon/Icon.d.ts
vendored
|
@ -5,7 +5,7 @@ export interface IconProps {
|
|||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
* Icon size must be 16px (e.g. `Add16`, `Task16`)
|
||||
*/
|
||||
render?: import("carbon-icons-svelte").CarbonIcon;
|
||||
render?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
/**
|
||||
* Set to `true` to display the skeleton state
|
||||
|
|
2
types/Notification/NotificationButton.d.ts
vendored
2
types/Notification/NotificationButton.d.ts
vendored
|
@ -10,7 +10,7 @@ export interface NotificationButtonProps extends svelte.JSX.HTMLAttributes<HTMLE
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
renderIcon?: import("carbon-icons-svelte").CarbonIcon;
|
||||
renderIcon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
/**
|
||||
* Specify the title of the icon
|
||||
|
|
2
types/OverflowMenu/OverflowMenu.d.ts
vendored
2
types/OverflowMenu/OverflowMenu.d.ts
vendored
|
@ -38,7 +38,7 @@ export interface OverflowMenuProps extends svelte.JSX.HTMLAttributes<HTMLElement
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
/**
|
||||
* Specify the icon class
|
||||
|
|
2
types/Tooltip/Tooltip.d.ts
vendored
2
types/Tooltip/Tooltip.d.ts
vendored
|
@ -23,7 +23,7 @@ export interface TooltipProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNa
|
|||
* Specify the icon from `carbon-icons-svelte` to render for the tooltip button
|
||||
* Icon size must be 16px (e.g. `Add16`, `Task16`)
|
||||
*/
|
||||
icon?: import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
/**
|
||||
* Specify the ARIA label for the tooltip button
|
||||
|
|
2
types/UIShell/HeaderGlobalAction.d.ts
vendored
2
types/UIShell/HeaderGlobalAction.d.ts
vendored
|
@ -10,7 +10,7 @@ export interface HeaderGlobalActionProps extends svelte.JSX.HTMLAttributes<HTMLE
|
|||
/**
|
||||
* Specify the icon to render
|
||||
*/
|
||||
icon?: import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML button element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue