Skip to main content
Module

x/reflect_metadata/Reflect.ts>Reflect.metadata

A Deno-compatible copy of the TypeScript Metadata Reflection API my Microsoft
Latest
function Reflect.metadata
import { Reflect } from "https://deno.land/x/reflect_metadata@v0.1.12-2/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.