UNPKG

@tsed/common

Version:
34 lines 743 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Name = void 0; const schema_1 = require("@tsed/schema"); /** * Create an alias of the propertyKey that must be used by the converter. * * ::: tip * This decorator is used by the Converters to deserialize correctly you model. * ::: * * ## Example * * ```typescript * class Model { * @Name(String) * property: string[]; * } * ``` * * @param {string} name * @returns {Function} * @decorator * @jsonMapper * @schema * @property * @ignore * @deprecated Since v6. Use @Name decorator from @tsed/schema instead of. */ function Name(name) { return schema_1.Name(name); } exports.Name = Name; //# sourceMappingURL=propertyName.js.map