figma documentation code example
Example 1: figma.com
Icn_Hambuger
Example 2: figma documentation
// 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) {
// ...
}