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

x/deno_reflect/mod.ts>Reflect.decorate

A Deno-compatible copy of the TypeScript Metadata Reflection API my Microsoft
Latest
function Reflect.decorate
import { Reflect } from "https://deno.land/x/deno_reflect@v0.2.1/mod.ts";
const { decorate } = Reflect;

Parameters

decorators: ClassDecorator[]
target: Function

Returns

Function

Parameters

decorators: (PropertyDecorator | MethodDecorator)[]
target: any
propertyKey: string | symbol
optional
attributes: PropertyDescriptor | null

Returns

PropertyDescriptor | undefined

Parameters

decorators: (PropertyDecorator | MethodDecorator)[]
target: any
propertyKey: string | symbol
attributes: PropertyDescriptor

Returns

PropertyDescriptor