一处类型错误

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