Template
1
0

feat: add any response to adapter fetch

This commit is contained in:
2025-04-25 18:44:35 +00:00
parent 7039c29890
commit c42a090666

View File

@@ -33,7 +33,7 @@ export class HttpAdapter implements RelayAdapter {
return json;
}
async fetch({ method, url, query, body }: RelayRESTInput) {
async fetch({ method, url, query, body }: RelayRESTInput): Promise<any> {
const res = await fetch(`${url}${query}`, {
method,
headers: { "x-relay-type": "rest", "content-type": "application/json" },