fix(core): update

This commit is contained in:
2019-03-26 12:07:12 +01:00
parent 5138219563
commit 25c0deb3f3
7 changed files with 57 additions and 49 deletions

View File

@ -41,10 +41,10 @@ export let rejectedPromise = err => {
};
interface IAsyncFunction<T> {
(someArg: T):Promise<T>
(someArg: T): Promise<T>;
}
export let map = async <T>(inputArg: T[], functionArg: IAsyncFunction<T> ) => {
export let map = async <T>(inputArg: T[], functionArg: IAsyncFunction<T>) => {
let promiseArray: Promise<any>[] = [];
let resultArray = [];
for (let item of inputArg) {