svelte-skeleton icon indicating copy to clipboard operation
svelte-skeleton copied to clipboard

Add string type to width and height

Open 1rens1 opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. The width and height props only has a number type. Although you can pass it a string which works fine, but it also displays an error with TypeScript that says Type 'string' is not assignable to type 'number'. image

Describe the solution you'd like Add string type to the width and height props

1rens1 avatar Apr 18 '22 07:04 1rens1

Thanks for the enhancement, I will be grateful for the pull request) Or I’ll do it myself a little later today)

denisstasyev avatar Apr 18 '22 07:04 denisstasyev