Error
Argument of type 'FontName | unique symbol' is not assignable to parameter of type 'FontName'. Type 'typeof figma.mixed' is not assignable to type 'FontName'.ts(2345)
Here’s my code.
(async () => {
const text = figma.createText()
await figma.loadFontAsync(text.fontName)
text.characters = link
})()