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

x/danet/src/deps.ts>Reflect.metadata

The most mature backend framework for Deno. Create awesome HTTP and WebSocket server as well as KVQueue workers !
Go to Latest
function Reflect.metadata
import { Reflect } from "https://deno.land/x/danet@2.4.0/src/deps.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.