fix(types): prefix icon type with "typeof"

This commit is contained in:
Eric Liu 2020-11-19 10:41:15 -08:00
commit 7a1480f0ed
16 changed files with 64 additions and 49 deletions

View file

@ -20,7 +20,7 @@
/**
* Specify the icon from `carbon-icons-svelte` to render
* @type {import("carbon-icons-svelte").CarbonIcon}
* @type {typeof import("carbon-icons-svelte").CarbonIcon}
*/
export let icon = undefined;

View file

@ -2,7 +2,7 @@
/**
* Specify the icon from `carbon-icons-svelte` to render
* Icon size must be 16px (e.g. `Add16`, `Task16`)
* @type {import("carbon-icons-svelte").CarbonIcon}
* @type {typeof import("carbon-icons-svelte").CarbonIcon}
*/
export let render = undefined;

View file

@ -7,7 +7,7 @@
/**
* Specify the icon from `carbon-icons-svelte` to render
* @type {import("carbon-icons-svelte").CarbonIcon}
* @type {typeof import("carbon-icons-svelte").CarbonIcon}
*/
export let renderIcon = Close20;

View file

@ -28,7 +28,7 @@
/**
* Specify the icon from `carbon-icons-svelte` to render
* @type {import("carbon-icons-svelte").CarbonIcon}
* @type {typeof import("carbon-icons-svelte").CarbonIcon}
*/
export let icon = OverflowMenuVertical16;

View file

@ -20,7 +20,7 @@
/**
* Specify the icon from `carbon-icons-svelte` to render for the tooltip button
* Icon size must be 16px (e.g. `Add16`, `Task16`)
* @type {import("carbon-icons-svelte").CarbonIcon} [icon=Information16]
* @type {typeof import("carbon-icons-svelte").CarbonIcon}
*/
export let icon = Information16;

View file

@ -4,7 +4,7 @@
/**
* Specify the icon to render
* @type {import("carbon-icons-svelte").CarbonIcon}
* @type {typeof import("carbon-icons-svelte").CarbonIcon}
*/
export let icon = undefined;