Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yargs/lib/utils/is-promise.ts>isPromise

yargs the modern, pirate-themed successor to optimist.
Go to Latest
function isPromise
import { isPromise } from "https://deno.land/x/yargs@v17.6.0/lib/utils/is-promise.ts";

Parameters

maybePromise: T | Promise<T>

Returns

maybePromise is Promise<T>