# PropertyRegistry Class

Module
import { PropertyRegistry } from "@tsed/common"
Source/packages/common/src/jsonschema/registries/PropertyRegistry.ts

# Overview

class PropertyRegistry {
    /**
     *
     * @param target
     * @param propertyKey
     * @returns {PropertyMetadata}
     */
    static get(target: Type<any>, propertyKey: string | symbol): PropertyMetadata;
    /**
     *
     * @param target
     * @param options
     * @returns {Array}
     */
    static getProperties(target: Type<any>, options?: Partial<{
        withIgnoredProps: boolean;
    }>): Map<string | symbol, PropertyMetadata>;
    /**
     *
     * @param {Type<any>} target
     * @returns {Map<string | symbol, PropertyMetadata>}
     */
    static getOwnProperties(target: Type<any>): Map<string | symbol, PropertyMetadata>;
    /**
     *
     * @param target
     * @param propertyKey
     * @param property
     */
    static set(target: Type<any>, propertyKey: string | symbol, property: PropertyMetadata): void;
    /**
     *
     * @param target
     * @param propertyKey
     * @param allowedRequiredValues
     * @deprecated
     */
    static required(target: Type<any>, propertyKey: string | symbol, allowedRequiredValues?: any[]): typeof PropertyRegistry;
    /**
     *
     * @param {(propertyMetadata: PropertyMetadata, parameters: DecoratorParameters) => void} fn
     * @returns {Function}
     * @deprecated
     */
    static decorate(fn: (propertyMetadata: PropertyMetadata, parameters: DecoratorParameters) => void): Function;
}