diff --git a/packages/arui-scripts-server/src/modules/create-get-modules-method.ts b/packages/arui-scripts-server/src/modules/create-get-modules-method.ts index 72e669a5..4df189e1 100644 --- a/packages/arui-scripts-server/src/modules/create-get-modules-method.ts +++ b/packages/arui-scripts-server/src/modules/create-get-modules-method.ts @@ -5,8 +5,8 @@ import { getAppManifest, readAssetsManifest } from '../read-assets-manifest'; import { ModulesConfig } from './types'; -export function createGetModulesMethod( - modules: ModulesConfig, +export function createGetModulesMethod( + modules: ModulesConfig, ) { const assets: Record>> = {}; @@ -14,7 +14,7 @@ export function createGetModulesMethod( method: 'POST', path: '/api/getModuleResources', handler: async ( - getResourcesRequest: GetResourcesRequest, + getResourcesRequest: GetResourcesRequest, ...params: FrameworkParams ): Promise => { const appManifest = await getAppManifest(); diff --git a/packages/arui-scripts-server/src/modules/types.ts b/packages/arui-scripts-server/src/modules/types.ts index d6a2c0b4..eded4b65 100644 --- a/packages/arui-scripts-server/src/modules/types.ts +++ b/packages/arui-scripts-server/src/modules/types.ts @@ -4,15 +4,15 @@ import type { MountMode, } from '@alfalab/scripts-modules'; -export type ModuleDescriptor = { +export type ModuleDescriptor = { mountMode: MountMode; version?: string; getModuleState: ( - getResourcesRequest: GetResourcesRequest, + getResourcesRequest: GetResourcesRequest, ...params: FrameworkParams ) => Promise; }; -export type ModulesConfig = { - [moduleId: string]: ModuleDescriptor; +export type ModulesConfig = { + [moduleId: string]: ModuleDescriptor; };