figma documentation

The solution for “figma documentation” can be found here. The following code will assist you in solving the problem.

// The ‘: string[]’ is an annotation
let list: string[] = []
for (const node of figma.currentPage.selection) {
list.push(node.type)
}

// The ‘: number’ are also annotations
function doThing(x: number, str: string) {
// …
}

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in