plugin-typings
plugin-typings copied to clipboard
Typings for the Figma Plugin API
With the new spring animation, this part was missing.
It can be set to `Component set for node has existing errors`. This happens when you have invalid/duplicate variant(names). The type definition should be something in the line of: ```...
this change will bring better type experience in bellow case ```ts const style = figma.getStyleById(styleId) if (style.type === 'TEXT') { // TS would infer `style` is `TextStyle` type here }...
Add listSpacing for: - TextSublayerNode - TextStyle
See https://developer.mozilla.org/de/docs/Web/API/Console/dir If there's anything i should change or add please let me know.
VSCode is unable to locate Plugin API typings, here is a quick fix.
From plugin-api.d.ts, `fillGeometry` is not marked as readonly. I assumed I could edit the array but the Figma Developer VM threw this error: `Cannot set property fillGeometry of [object Object]...
It's possible to change the constraints for a group in the properties panel but the plugin types and the plugin API don't include them.
order, as-is the index on the node hierarchy. seems like rest api supports order property, but plugin api does not. Plans for adding this field on next update?