fix ts error

This commit is contained in:
Pooya Parsa 2020-11-20 12:56:51 +01:00
parent b15d16abd3
commit 1524377708

View File

@ -123,7 +123,7 @@ export function createDevServer (sigmaContext: SigmaContext) {
await pendingWorker.terminate()
}
await Promise.all(listeners.map(l => new Promise((resolve) => {
l.close(() => resolve())
l.close(() => resolve(undefined))
})))
listeners = []
}