Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dactyl/Arg.ts>Param

Web framework for Deno, built on top of Oak 🦇
Latest
function Param
import { Param } from "https://deno.land/x/dactyl@v0.1.0-alpha/Arg.ts";

Parameter decorator - maps context.params onto controller actions as an argument, e.g.

public controllerAction(@Param('id') id: number): any {}

Returns whole context.params object if no key specified

Parameters

optional
paramKey: string

Returns

ParameterDecorator