I’m working on a Figma plugin and running into a weird issue. According to the official docs, VectorNode should have a fillGeometry property that I can use. But when I try to access it in my TypeScript code, the compiler throws an error saying the property doesn’t exist.
Here’s what I’m trying to do:
const myVector = figma.createVector();
// This line causes TypeScript error
myVector.fillGeometry = someGeometryData;
The error message is: “Property ‘fillGeometry’ does not exist on type ‘VectorNode’”
I’ve double checked the documentation and it clearly shows fillGeometry as an available property. Am I doing something wrong? Has anyone successfully used fillGeometry on a VectorNode? I really need to set custom geometry data on my vector shapes.
Any help would be appreciated!