figma documentation link code example
Example: 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) {
// ...
}