一处类型错误
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,
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue