figma-api
figma-api copied to clipboard
styles map missing from FRAME nodes
This is actually an error in the Figma documentation, so I understand why the type is missing from the library. I've alerted Figma to the bug.
The StylesMap
you can find at Node<'VECTOR'>.styles
should also exist at Node<'FRAME'>.styles
, at the very least. However I suspect that it should also be on other types as well; probably anything that you can set styles on. I've only verified so far that is returned in FRAME nodes.