TypeScript typings for the Figma REST API
This library provides TypeScript typings for the Figma Developers REST API. It scrapes the Figma Developers REST API documentation to generate the typings, which are then saved to index.d.ts
.
Installation
To install the package, use npm:
npm install --save-dev @dicebear/typings-figma-rest-api
Usage
To use the typings, import them in your TypeScript code:
import type { DOCUMENT } from '@dicebear/typings-figma-rest-api';
Generating the typings
To generate the typings yourself, follow these steps:
- Clone the repository:
git clone https://github.com/dicebear/figma-rest-api-typings.git
- Install the dependencies:
npm install
- Run the generator:
npm run generate
This will update the index.d.ts
file with the latest typings.