📜  figma.com - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:48.387000             🧑  作者: Mango

代码示例5
// 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) {
  // ...
}