Svelte: Allow strings for size and strokeWidth (#913)

* Svelte: Allow strings for `size` and `strokeWidth`

* Svelte: Add missing types for building
This commit is contained in:
Luca
2023-02-02 08:37:26 +01:00
committed by GitHub
parent a9fef9f6b0
commit e38137822d
2 changed files with 4 additions and 4 deletions
@@ -31,8 +31,8 @@ import { SvelteComponentTyped } from "svelte";
interface IconProps extends Partial<svelte.JSX.SVGProps<SVGSVGElement>> {
color?: string
size?: number,
strokeWidth?: number,
size?: number|string,
strokeWidth?: number|string,
class?: string
}
+2 -2
View File
@@ -4,8 +4,8 @@
export let name: string
export let color = 'currentColor'
export let size = 24
export let strokeWidth = 2
export let size: number|string = 24
export let strokeWidth: number|string = 2
export let iconNode: IconNode
</script>