refactor: don't use default exports
This commit is contained in:
parent
d18e3a9da5
commit
0f3de13f52
|
@ -26,7 +26,7 @@ import {
|
|||
import { AxiosResponse } from "axios";
|
||||
import * as URL from 'url';
|
||||
|
||||
export default class AccountApi {
|
||||
export class AccountApi {
|
||||
private apiUrl: string;
|
||||
private jwtToken?: string;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import AccountApi from "./account.js";
|
||||
import {AccountApi} from "./account.js";
|
||||
|
||||
export class Sdk {
|
||||
private apiUrl: string;
|
||||
|
@ -16,6 +16,6 @@ export class Sdk {
|
|||
if (!this.accountApi) {
|
||||
this.accountApi = AccountApi.create(this.apiUrl);
|
||||
}
|
||||
return this.accountApi;
|
||||
return this.accountApi!;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue