diff --git a/src/account.ts b/src/account.ts index b463032..d5c07a4 100644 --- a/src/account.ts +++ b/src/account.ts @@ -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; diff --git a/src/sdk.ts b/src/sdk.ts index 18be100..3a63f06 100644 --- a/src/sdk.ts +++ b/src/sdk.ts @@ -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!; } }