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

x/deco/engine/core/resolver.ts>resolve

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Go to Latest
variable resolve
import { resolve } from "https://deno.land/x/deco@1.40.2/engine/core/resolver.ts";

Receives a string (pointing to a resolvable or a resolver), a context and optionally dangling and propsAreResolved flag, and returns the resolved object. See readme for more details

type

<T, TContext extends BaseContext = BaseContext>(
maybeResolvable: string | Resolvable<T, TContext>,
context: TContext,
nullIfDangling?,
propsAreResolved?,
) => Promise<T>