Skip to content

Commit

Permalink
fix: fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hwbllmnn committed Oct 17, 2024
1 parent e3fd64e commit 6f04a5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const initSHOGunAPIClient = (keycloak?: Keycloak) => {
};

const loadPluginModules = async (moduleName: string, moduleUrl: string, remoteNames: string[]) => {
// @ts-expect-error
init({
name: 'SHOGunAdmin',
remotes: [{
Expand All @@ -99,6 +100,7 @@ const loadPluginModules = async (moduleName: string, moduleUrl: string, remoteNa
// For backwards compatibility (existing plugin remote are potentially prefixed with './')
const remote = `${moduleName}/${remoteName.startsWith('./') ? remoteName.substring(2) : remoteName}`;

// @ts-expect-error
const adminPlugin = await loadRemote<any>(remote);

if (adminPlugin && adminPlugin.default) {
Expand All @@ -109,6 +111,7 @@ const loadPluginModules = async (moduleName: string, moduleUrl: string, remoteNa
return modules;
};

// @ts-expect-error
const loadPlugins = async () => {
if (!config.plugins || config.plugins.length === 0) {
Logger.info('No plugins found');
Expand Down

0 comments on commit 6f04a5e

Please sign in to comment.