figma-api
figma-api copied to clipboard
Update "file.components" type
Hi, thank you so much for this fantastic library! I noticed that GetFileResult.components
has this type:
/** An arrangement of published UI elements that can be instantiated across figma files */
export interface Component {
/** The key of the component */
key: string;
/** The name of the component */
name: string;
/** The description of the component as entered in the editor */
description: string;
}
However, here's the JSON output of a request:
{
"componentSetId": "2:135",
"description": "",
"documentationLinks": [],
"key": "<redacted>",
"name": "name redacted"
}
You can see that "componentSetId" seems to be missing. Thanks!