Files
gridpilot.gg/apps/website/lib/contracts/api/ApiClient.ts
2026-01-12 01:45:19 +01:00

16 lines
430 B
TypeScript

/**
* ApiClient contract
*
* Transport boundary for API calls.
* Returns API Transport DTOs only.
*
* Based on WEBSITE_CONTRACT.md:
* - API Transport DTOs are returned by the backend API over HTTP
* - Website uses ApiClient to communicate with the API
*/
export interface ApiClient<TApiDto = unknown> {
/**
* Execute an API call and return the transport DTO
*/
execute(...args: unknown[]): Promise<TApiDto>;
}