Sites API
Generating types
Generate TypeScript types for Sites API responses from the OpenAPI document.
Download the OpenAPI document from /openapi/sites.json and generate types from it:
npx openapi-typescript sites.json -o lib/resi/sites-api.d.tsEvery response schema lists all of its keys as required and sets additionalProperties: false, so the generated types have no optional response fields: a key is either a value or null.
Last updated on