refactor: don't use default exports

This commit is contained in:
Derrick Hammer 2024-03-13 18:12:44 -04:00
parent d18e3a9da5
commit 0f3de13f52
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ import {
import { AxiosResponse } from "axios"; import { AxiosResponse } from "axios";
import * as URL from 'url'; import * as URL from 'url';
export default class AccountApi { export class AccountApi {
private apiUrl: string; private apiUrl: string;
private jwtToken?: string; private jwtToken?: string;

View File

@ -1,4 +1,4 @@
import AccountApi from "./account.js"; import {AccountApi} from "./account.js";
export class Sdk { export class Sdk {
private apiUrl: string; private apiUrl: string;
@ -16,6 +16,6 @@ export class Sdk {
if (!this.accountApi) { if (!this.accountApi) {
this.accountApi = AccountApi.create(this.apiUrl); this.accountApi = AccountApi.create(this.apiUrl);
} }
return this.accountApi; return this.accountApi!;
} }
} }