jemgold / figma-js

Little wrapper (+ types) for the Figma API
https://jongold.github.io/figma-js/
MIT License
490 stars 47 forks source link

File Nodes type not fully implemented #52

Closed ierehon1905 closed 2 years ago

ierehon1905 commented 3 years ago

Currently the types are, (notice only 3 props)

export interface FileNodesParams {
    /** A list of node IDs to retrieve and convert */
    readonly ids: ReadonlyArray<string>;
    /**
     * A specific version ID to get. Omitting this will get the current version of the file
     */
    readonly version?: string;
    /**
     * Set to "paths" to export vector data
     */
    readonly geometry?: string;
}

It seems that it's not the only place.

While official Figma docs state

image

Maybe it could be fixed by renewing the types