Deno.ConditionalAsync

UNSTABLE: New API, yet to be vetted.

type ConditionalAsync<IsAsync extends boolean | undefined, T> = IsAsync extends true ? Promise<T> : T;

§Type Parameters

§
IsAsync extends boolean | undefined
[src]

§Type

§
IsAsync extends true ? Promise<T> : T
[src]