ebal
js
Wrap Lines
Raw export interface Api {
get<TResponse>(
url: `/${string}`,
init?: Omit<RequestInit, 'body' | 'method'>
): Promise<TResponse>;
post<TBody = unknown, TResponse = unknown>(
url: `/${string}`,
body: TBody,
init?: Omit<RequestInit, 'body' | 'method'>,
): Promise<TResponse>;
}