Skip to content

Commit d546816

Browse files
authored
feat: remove FetchClient exports from index.ts (#35)
2 parents d2cf654 + c10bca8 commit d546816

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

apps/react-kit-demo/src/services/BookService.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { FetchClient } from '@react-kit/*';
21
import { BASE_API_URL, BOOK_API_URL } from '../constants/ApiConstants';
32
import { Book } from '../types/Book';
43

@@ -16,6 +15,6 @@ export class BookService {
1615
* @since 1.0.0
1716
*/
1817
static async getAllBooks(): Promise<Book[]> {
19-
return await FetchClient<Book[]>(`${BASE_API_URL + BOOK_API_URL}/books`);
18+
return await fetch(`${BASE_API_URL + BOOK_API_URL}/books`).then((res) => res.json());
2019
}
2120
}

react-kit/src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ export { ReactIf } from './lib/components/ReactIf';
2323
export { TablePaginationActions } from './lib/components/table/TablePaginationActions';
2424
export { a11yProps, TabPanel } from './lib/components/tabs/TabPanel';
2525

26-
// Export fetch client
27-
export { FetchClient as fetchClient, FetchClient, FetchClient as httpClient } from './lib/config/fetch/FetchClient';
28-
export * from './lib/config/fetch/FetchClientTypes';
29-
export { FetchInterceptor } from './lib/config/fetch/FetchInterceptor';
30-
3126
// Export all utilities
3227
export * from './lib/utils/BooleanUtils';
3328
export * from './lib/utils/CssUtils';

0 commit comments

Comments
 (0)