Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

parameterDecoratorFactory

import { parameterDecoratorFactory } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts";

This function creates a custom parameter decorator (used in a HTTP Handler). With this function, you can establish your own behaviors towards an injection which will be made when processing the handler This function can be generic in order to specify what type of data your parameter will receive, for this it takes two generic arguments (DecoratorData, DecoratorReturn)

@example
 const UserId = parameterDecoratorFactory<number, number>((context: Mandarine.Types.RequestContextAcessor, data) => context.getRequest().userID);
function parameterDecoratorFactory<DecoratorData = any, DecoratorReturn = any>(executor: Mandarine.MandarineMVC.CustomDecoratorExecutor<DecoratorData, DecoratorReturn>);
§
parameterDecoratorFactory<DecoratorData = any, DecoratorReturn = any>(executor: Mandarine.MandarineMVC.CustomDecoratorExecutor<DecoratorData, DecoratorReturn>)
[src]

§Type Parameters

§
DecoratorData = any
[src]
§
DecoratorReturn = any
[src]

§Parameters

§
executor: Mandarine.MandarineMVC.CustomDecoratorExecutor<DecoratorData, DecoratorReturn>
[src]