figma-api icon indicating copy to clipboard operation
figma-api copied to clipboard

styles map missing from FRAME nodes

Open isaiahtaylor opened this issue 2 years ago • 0 comments

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.

isaiahtaylor avatar Aug 19 '22 14:08 isaiahtaylor