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

x/blocks/utils/invoke.types.ts>ManifestFunction

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Go to Latest
type alias ManifestFunction
import { type ManifestFunction } from "https://deno.land/x/blocks@1.102.3/utils/invoke.types.ts";

Type Parameters

TManifest extends AppManifest
TFunc extends string
definition: TFunc extends AvailableFunctions<TManifest> ? TManifest["functions"][TFunc] extends { default: infer TLoader; } ? TLoader extends (
req: any,
ctx: any,
props: infer Props,
) => PromiseOrValue<{ data: infer TReturn; }> ? { props: Props; return: TReturn; } : never : never : never