Skip to content

Commit 8ec7400

Browse files
committed
fix:updated response type
Signed-off-by: Amitkanswal <[email protected]>
1 parent d614234 commit 8ec7400

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/types/api.type.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ export interface ApiResponse<T = any> {
1414
status: number;
1515
statusText: string;
1616
headers: Record<string, string>;
17-
config: ApiRequestParams;
1817
request?: any;
1918
}

src/utils/adapter.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const createSDKAdapter = (postRobot: typeof PostRobot) => async (config:
2424
status: data?.status || 200,
2525
statusText: 'OK',
2626
headers: config.headers || {},
27-
config,
2827
};
2928
} catch (error) {
3029
const typedError = error as GenericObjectType & { status?: number; statusText?: string; headers?: Record<string, string>; body?: any; message?: string };
@@ -33,7 +32,6 @@ export const createSDKAdapter = (postRobot: typeof PostRobot) => async (config:
3332
status: typedError.status || 500,
3433
statusText: typedError.statusText || 'Internal Server Error',
3534
headers: typedError.headers || {},
36-
config,
3735
};
3836
}
3937
};

0 commit comments

Comments
 (0)