一处类型错误

This commit is contained in:
Pan Qiancheng 2024-12-04 16:46:14 +08:00
parent e77abce3f0
commit d74152ffa8
1 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ export async function startup<ED extends EntityDict & BaseEntityDict, FrontCxt e
omitWatchers?: boolean, omitWatchers?: boolean,
omitTimers?: boolean, omitTimers?: boolean,
routine?: (context: AsyncContext<ED>) => Promise<void>, routine?: (context: AsyncContext<ED>) => Promise<void>,
): Promise<(() => void )| undefined> { ): Promise<(() => Promise<void> )| undefined> {
const serverConfiguration: ServerConfiguration = require(join( const serverConfiguration: ServerConfiguration = require(join(
path, path,
'lib', 'lib',
@ -307,8 +307,8 @@ export async function startup<ED extends EntityDict & BaseEntityDict, FrontCxt e
}); });
const shutdown = async () => { const shutdown = async () => {
httpServer.close(); await httpServer.close();
koa.removeAllListeners(); await koa.removeAllListeners();
await appLoader.unmount(); await appLoader.unmount();
} }