mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
425 B
TypeScript
14 lines
425 B
TypeScript
import promiseSequential = require('promise-sequential');
|
|
|
|
const promiseFunctions = [
|
|
async (): Promise<string> => new Promise((resolve, reject) => 'a'),
|
|
async (): Promise<string> => new Promise((resolve, reject) => 'b'),
|
|
async (): Promise<string> => new Promise((resolve, reject) => 'c'),
|
|
];
|
|
|
|
async function main(): Promise<void> {
|
|
const result: any[] = await promiseSequential(promiseFunctions);
|
|
}
|
|
|
|
main();
|