Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PromiseOrNot

import type { PromiseOrNot } from "https://raw.githubusercontent.com/garronej/tsafe/v0.10.1/deno_dist/lab/PromiseOrNot.ts";
type PromiseOrNot<T> = PromiseLike<T> | T;

§Type Parameters

§Type

§
PromiseLike<T> | T
[src]