A value that might be coming from a Promise
or might not, but can be
await
ed. This type is specially useful when a code is "isomorphic
asynchronous", meaning it will handle both the asynchronous and synchronous
version of the same type.
A value that might be coming from a Promise
or might not, but can be
await
ed. This type is specially useful when a code is "isomorphic
asynchronous", meaning it will handle both the asynchronous and synchronous
version of the same type.
Add Package
deno add jsr:@coven/types
Import symbol
import { type Awaitable } from "@coven/types";
---- OR ----
Import directly with a jsr specifier
import { type Awaitable } from "jsr:@coven/types";
Add Package
npx jsr add @coven/types
Import symbol
import { type Awaitable } from "@coven/types";
Add Package
yarn dlx jsr add @coven/types
Import symbol
import { type Awaitable } from "@coven/types";
Add Package
pnpm dlx jsr add @coven/types
Import symbol
import { type Awaitable } from "@coven/types";
Add Package
bunx jsr add @coven/types
Import symbol
import { type Awaitable } from "@coven/types";