Convert the corpus API helpers to TypeScript
Convert the API helper functions in src/api/corpus.js
to TypeScript, using the request and response payloads defined in the backend API docs as a reference.
Convert the API helper functions in src/api/corpus.js
to TypeScript, using the request and response payloads defined in the backend API docs as a reference.