Skip to content

Commit

Permalink
resolved conflit
Browse files Browse the repository at this point in the history
  • Loading branch information
harshtech123 committed Jan 6, 2025
1 parent ddf29ec commit 1f50d3f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions source/lib/api.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import { PERMIT_API_URL } from '../config.js';

interface ApiResponseData {
[x: string]: any;
id?: string;
name?: string;
}

type ApiResponse = {
type ApiResponse<T> = {
headers: Headers;
response: T;
status: number;
Expand Down Expand Up @@ -61,4 +55,4 @@ export const apiCall = async <T = any>(
error instanceof Error ? error.message : 'Unknown fetch error occurred';
}
return defaultResponse;
};
};

0 comments on commit 1f50d3f

Please sign in to comment.