Generate TypeScript interfaces from your document types for type-safe consumption of Affinda API responses.
affinda-generate-interfaces
command to auto-generate typescript interfaces from your document type configuration.
For example, this will generate typescript interfaces for your Recruitment workspace:
AFFINDA_API_KEY
environment variable set.
The generated typescript interfaces will be in ./affinda-interfaces
by default.
For the list of options available, run: