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

x/alosaur/src/injection/reflect.ts>Reflect.metadata

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
function Reflect.metadata
import { Reflect } from "https://deno.land/x/alosaur@v0.35.0/src/injection/reflect.ts";
const { metadata } = Reflect;

A default metadata decorator factory that can be used on a class, class member, or parameter.

Examples

// constructor

Parameters

metadataKey: any

The key for the metadata entry.

metadataValue: any

The value for the metadata entry.

Returns

{ (target: Function): void; (target: any, propertyKey: string | symbol): void; }

A decorator function.