Skip to main content
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@v1.15.0/mod.ts";

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

Examples

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

type

(callback: ParamDecoratorCallback) => unknown