diff --git a/src/simapi.core.ts b/src/simapi.core.ts index 0fe6e5d..d784547 100644 --- a/src/simapi.core.ts +++ b/src/simapi.core.ts @@ -84,7 +84,7 @@ export class SimApiCore { logout_url: '/auth/logout', login_url: '/auth/login', } - webConfig: Map> = new Map(); + webConfig: Map> = new Map(); private api: SimApiApiConfig = { endpoints: {default: ''}, @@ -213,7 +213,7 @@ export class SimApiCore { console.log('[DEBUG]', ...args) } - async getConfig(reload: boolean = false, endpointName: string = 'default'): Promise> { + async getConfig(reload: boolean = false, endpointName: string = 'default'): Promise> { if (!this.webConfig.has(endpointName) || reload) { const versions: SimApiVersions = { uiApp: typeof AppVersion === 'undefined' ? "0.0.0-develop" : AppVersion, diff --git a/src/simapi.pinia.ts b/src/simapi.pinia.ts index bb4f2e0..5ee8af2 100644 --- a/src/simapi.pinia.ts +++ b/src/simapi.pinia.ts @@ -77,7 +77,7 @@ export const useSimApi = defineStore('simapi', { return this._core.getEndpoint(name) }, - async getConfig(reload = false, endpointName?: string): Promise> { + async getConfig(reload = false, endpointName?: string): Promise> { return this._core.getConfig(reload, endpointName) }, },