Skip to main content
Home
This package has been archived, and as such it is read-only.

@dx/reflect@0.2.15
Built and signed on GitHub Actions

Works with
This package works with Deno
This package works with Deno
JSR Score100%
Downloads126/wk
Published11 months ago (0.2.15)

forked from jiawei397/deno-reflect-metadata

function Reflect.getMetadata
getMetadata(
metadataKey: any,
target: any,
): any

Gets the metadata value for the provided metadata key on the target object or its prototype chain.

Parameters

metadataKey: any
  • A key used to store and retrieve metadata.
target: any
  • The target object on which the metadata is defined.

Return Type

any
  • The metadata value for the metadata key if found; otherwise, undefined.
getMetadata(
metadataKey: any,
target: any,
propertyKey: string | symbol,
): any

Gets the metadata value for the provided metadata key on the target object or its prototype chain.

Parameters

metadataKey: any
  • A key used to store and retrieve metadata.
target: any
  • The target object on which the metadata is defined.
propertyKey: string | symbol
  • The property key for the target.

Return Type

any
  • The metadata value for the metadata key if found; otherwise, undefined.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@dx/reflect

Import symbol

import { Reflect } from "@dx/reflect";
or

Import directly with a jsr specifier

import { Reflect } from "jsr:@dx/reflect";