Skip to main content

addDevResourceAsync

Adds a dev resource to a node. This will fail if the node already has a dev resource with the same url.

Signature​

addDevResourceAsync(url: string, name?: string): Promise<void>

Parameters​

url​

The url of the dev resource.

name​

The name of the dev resource. If not provided, Figma will get the name from the url.