csstype icon indicating copy to clipboard operation
csstype copied to clipboard

Add generics to string properties

Open sjohnsonaz opened this issue 5 years ago • 2 comments

For properties like backgroundColor, and transform, they only accept string. Is it possible to create a generic for this, similar to TLength?

sjohnsonaz avatar Jun 16 '20 20:06 sjohnsonaz

A generic for what purpose?

frenic avatar Jun 17 '20 08:06 frenic

I'm attempting to override the string value for backgroundColor and transform with another type. I'm hoping to pass an Object that has a toString method so that it will automatically cast to a correctly formatted string.

I did this already for properties using TLength, like margin, but the rest aren't generic.

sjohnsonaz avatar Jun 24 '20 05:06 sjohnsonaz