T extends Promise<infer V> ? V : T extends PlainObject ? RecursivePromiseObjectToReal<T> : T extends (infer V)[] ? RecursivePromiseToReal<V>[] : T
@mary/deep-promise@0.1.0
latest
Recursively awaits all promises inside an object
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
JSR Score
82%
Published
2 months ago (0.1.0)
Add Package
deno add jsr:@mary/deep-promise
Import symbol
import { type RecursivePromiseToReal } from "@mary/deep-promise";
---- OR ----
Import directly with a jsr specifier
import { type RecursivePromiseToReal } from "jsr:@mary/deep-promise";
Add Package
npx jsr add @mary/deep-promise
Import symbol
import { type RecursivePromiseToReal } from "@mary/deep-promise";
Add Package
yarn dlx jsr add @mary/deep-promise
Import symbol
import { type RecursivePromiseToReal } from "@mary/deep-promise";
Add Package
pnpm dlx jsr add @mary/deep-promise
Import symbol
import { type RecursivePromiseToReal } from "@mary/deep-promise";
Add Package
bunx jsr add @mary/deep-promise
Import symbol
import { type RecursivePromiseToReal } from "@mary/deep-promise";