declare type MappingFunction = (i: Promise) => void; /** * Maps over an array of promises like Array.map() * If the input array is not one of promises, the mapper function can be used * to map them first before mapping over them using Promise.all() */ declare const mapPromise: (inputs: any[], mapper: MappingFunction) => Promise; export default mapPromise;