16 lines
430 B
TypeScript
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>;
|
|
} |