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

resolve

import { resolve } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/promise.ts";

An alias for Promise.resolve.

@example
import { resolve } from "./promise.ts";

const result = await resolve(1); // 1
function resolve<A>(a: A | PromiseLike<A>): Promise<A>;
§
resolve<A>(a: A | PromiseLike<A>): Promise<A>
[src]

§Type Parameters

§Parameters

§
a: A | PromiseLike<A>
[src]

§Return Type

§
Promise<A>
[src]