Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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) {
  // ...
}
Source by www.figma.com #
 
PREVIOUS NEXT
Tagged: #figma #documentation
ADD COMMENT
Topic
Name
1+8 =