一处类型错误
This commit is contained in:
parent
e77abce3f0
commit
d74152ffa8
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue