Closed 0xa3k5 closed 3 weeks ago
Hey @0xa3k5, it looks like we have an error in our typings here, sorry about that! I'll raise a bug to get it fixed.
I just tried a similar example and was able to publish. I only saw the error in my IDE. Is the CLI failing to publish for you?
@0xa3k5 I just created a fix for this so it will be in our next release!
hey thank you very much! @tomduncalf-figma yeah it actually works and seems like it's only a typing bug.
I've been trying to set up the
code-connect
for our design system. Ran into a bit of an issue and I'm not sure how to resolve it.we have a design component with these properties:
when the
iconOnly
prop is true, the component doesn't render thetext
string, however when it's false, we render the string as the children. so that is what I'm trying to achieve:inside the figma.connect:
the false value here throws type error:
I tried to wrapping it as:
which silences the type error but after successfully publishing (no errors in publish script) figma client stops displaying the code example in dev mode.
Any idea how to resolve it?