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

x/oak_nest/mod.ts>createParamDecorator

Refer to nestjs to realize some common functions for Deno
Go to Latest
variable createParamDecorator
Re-export
import { createParamDecorator } from "https://deno.land/x/oak_nest@v2.0.0/mod.ts";

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

Examples

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

type

(callback: ParamDecoratorCallback) => unknown