Skip to content
This repository was archived by the owner on Oct 12, 2026. It is now read-only.

Commit 0a883e6

Browse files
committed
fix: build issues on client module
1 parent e71f90a commit 0a883e6

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎src/client/src/http-client.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class ApiClient {
4949
const errorData: ApiError = await response.json().catch(() => ({
5050
message: `HTTP ${response.status}: ${response.statusText}`,
5151
}));
52-
throw new ApiClientError(errorData.message, response.status, errorData.code);
52+
throw new ApiClientError(errorData.message, response.status, errorData.code as string);
5353
}
5454

5555
const responseJson = response.json() as unknown as RestApiResponse<T>;

‎src/client/src/index.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { MTG } from "./modules/MTG";
2-
import { ClientConfig } from "./http-client";
2+
3+
import type { ClientConfig } from "./http-client";
34

45
export type { ClientConfig } from './http-client';
56

‎src/client/src/modules/MTG.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { ApiClient, ClientConfig, RestApiResponse } from '../http-client';
1+
import { ApiClient } from '../http-client';
22

3+
import type { ClientConfig, RestApiResponse } from '../http-client';
34
import type { PaginatedResponse } from '../types';
45

56
export interface GetCardsParams {

0 commit comments

Comments
 (0)