import { promise } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { map } = promise;
Create a new Promise by mapping over the result of an existing Promise. This is effectively Promise.then, but narrowed to non-promise returning functions. If the mapping function returns a Promise then the type for this function will be incorrect, as there is no way to create a Promise<Promise>.