• Get metadata by given key from all properties of a class. Record<propName, value> Warning: field metadata appears only for class instances, not for class constructors.

    Parameters

    • target: any
    • key: string

    Returns Record<string, any>