Options
All
  • Public
  • Public/Protected
  • All
Menu

成员映射

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

classMirror

classMirror: ClassMirror<any>

classMirror 所属的ClassMirror

Private isStatic

isStatic: boolean

是否为静态成员

Readonly metadata

metadata: Set<T> = ...

metadata collection 元数据集合

propertyKey

propertyKey: string | symbol

propertyKey Mirror映射的目标上的key名称

target

target: Object

target Mirror映射的目标

Methods

getAllMetadata

getDesignType

  • getDesignType<T>(): T

getMetadata

Static createDecorator

Static reflect

  • reflect(target: Function, propertyKey: string | symbol, isStatic?: boolean): undefined | PropertyMirror<any>
  • 映射元数据

    Parameters

    • target: Function
    • propertyKey: string | symbol
    • isStatic: boolean = false

      该方法根据映射的目标和目标上的key名称 返回映射的PropertyMirror实例

    Returns undefined | PropertyMirror<any>