I’m trying to retrieve the Style’s name for the fill color of text.
let styleId = textNode.fillStyleId
let styleName = figma.getStyleById(styleId).name
I get an error:
Argument of type ‘string | unique symbol’ is not assignable to parameter of type ‘string’.
Type ‘typeof figma.mixed’ is not assignable to type ‘string’.
I’ve tried defining styleId as a unique symbol (among other things), but basically keep running into the variable type conflict.
Any tips?