## TL;DR

Figma published an official set of REST API types, still in beta, at github.com/figma/rest-api-spec. Use those for typed REST responses instead of hand-rolled interfaces.

## Fix

1. Figma published an official set of REST API types, still in beta, at github.com/figma/rest-api-spec.
   Expected: You get the expected result; the problem is gone.
2. Use those for typed REST responses instead of hand-rolled interfaces.
   Expected: You get the expected result; the problem is gone.

## When to use

- You are setting up or using this Figma REST API TypeScript types feature.
- The symptom matches: official rest-api-spec repo.

## When NOT to use

- Unrelated Figma REST API TypeScript types issues (different feature, different failure).
- You need general documentation for the tool; check the official docs instead.

## Compatibility

Reported against Figma REST API TypeScript types.

## Variant phrasings

### official rest-api-spec repo

## Why it happens

GitHub issue on figma/plugin-typings asking whether Figma plans to ship typings for the REST API (the repo only covered the plugin API).

## Edge cases

- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.