Skip to main content
Module

x/dactyl/mod.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/mod.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