Skip to main content
Module

x/momentum/core/decorators/ctx.ts

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
File
import { createParameterDecorator } from "./create-parameter-decorator.ts";
/** * Decorator that gets the underlying platform context object as a action argument */export function Ctx() { return createParameterDecorator( async (contextAccessor) => await contextAccessor.getContext(), "ctx", );}