tuitio client update
parent
a040d1e7d3
commit
0296973977
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue