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

x/deno_nest/modules/uinv/deps.ts>createParamDecorator

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
variable createParamDecorator
Re-export
import { createParamDecorator } from "https://deno.land/x/deno_nest@v3.5.2/modules/uinv/deps.ts";

this is a high function which will return a param decorator.

Examples

const Body = createParamDecorator((ctx: Context) => {});

type

(callback: ParamDecoratorCallback) => unknown