import { SetMetadata } from "https://deno.land/x/deno_nest@v3.5.2/mod.ts";
Decorator that assigns metadata to the class/function using the
specified key
.
Requires two parameters:
key
- a value defining the key under which the metadata is storedvalue
- metadata to be associated withkey
This metadata can be reflected using the Reflector
class.
Example: @SetMetadata('roles', ['admin'])