Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.ns.d.ts>Deno.ConditionalAsync

A modern runtime for JavaScript and TypeScript.
Latest
type alias Deno.ConditionalAsync
import { type Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.ns.d.ts";
const { ConditionalAsync } = Deno;

Type Parameters

IsAsync extends boolean | undefined
T
definition: IsAsync extends true ? Promise<T> : T