mirror of
https://github.com/portainer/portainer.git
synced 2025-08-07 14:55:27 +02:00
chore(deps): upgrade typescript [EE-4841] (#8247)
This commit is contained in:
parent
365316971b
commit
6ef53f0598
17 changed files with 62 additions and 41 deletions
|
@ -3,10 +3,10 @@
|
|||
*
|
||||
* @param promises a list of functions that return promises
|
||||
*/
|
||||
export function promiseSequence<T>(promises: (() => Promise<T>)[]) {
|
||||
export function promiseSequence(promises: (() => Promise<unknown>)[]) {
|
||||
return promises.reduce(
|
||||
(promise, nextPromise) => promise.then(() => nextPromise()),
|
||||
Promise.resolve<T>(undefined as unknown as T)
|
||||
(promise, nextPromise) => promise.then(nextPromise),
|
||||
Promise.resolve(undefined as unknown)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue