tuitio client update

master
Tudor Stanciu 2023-02-10 01:29:28 +02:00
parent a040d1e7d3
commit 0296973977
2 changed files with 7 additions and 4 deletions

View File

@ -22,7 +22,7 @@ async function request(url: string, method: string) {
}
}
class TuitioConnector {
class TuitioClient {
baseUrl: string;
constructor(baseUrl: string) {
@ -62,5 +62,5 @@ const fetch = (): TuitioState => {
return data;
};
export { TuitioConnector, invalidate, fetch };
export default TuitioConnector;
export { TuitioClient, invalidate, fetch };
export default TuitioClient;

View File

@ -1 +1,4 @@
export const sum = (n1: number, n2: number) => n1 + n2;
import { TuitioClient, invalidate, fetch } from "./client";
export { TuitioClient, invalidate, fetch };
export default TuitioClient;