UNPKG

@tsed/common

Version:
23 lines 670 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Status = void 0; const schema_1 = require("@tsed/schema"); /** * Set the HTTP status for the response. It is a chainable alias of Node’s `response.statusCode`. * * @param code * @param obj * @deprecated Since v6. Use @Status decorator from @tsed/schema * @ignore */ function Status(code, obj = {}) { const options = obj; return schema_1.Returns(code, { ...options, code, collectionType: options.collection || options.collectionType, type: options.use || options.type }); } exports.Status = Status; //# sourceMappingURL=status.js.map