Generate a Typed API Client
Use Copilot to generate a strongly typed client for a REST API.
category:api-backend
api-client
typescript
rest
0
Prompt
Create a typed API client for the following REST API. Input: - Base URL: [base URL] - Endpoint list / OpenAPI snippet: [paste here] Requirements: - Use TypeScript. - Expose functions for each endpoint with typed parameters and return types. - Support abort signals/cancellation if appropriate. - Handle errors in a consistent way (e.g. custom error type).