UNPKG

@kezios/forest-express-decorator

Version:
23 lines (22 loc) • 1.25 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.InvalidPost = void 0; const core_1 = require("../../../core"); const SmartAction_1 = require("../../../decorator/SmartAction"); const SmartField_1 = require("../../../decorator/SmartField"); const AddLike_1 = require("./AddLike"); class InvalidPost extends core_1.BaseCollection { } __decorate([ (0, SmartField_1.SmartField)({ type: 'String', get: () => { return '2/10'; } }) ], InvalidPost.prototype, "popularity", void 0); __decorate([ (0, SmartAction_1.SmartActionIntegration)(AddLike_1.AddLike) ], InvalidPost.prototype, "addLike", void 0); exports.InvalidPost = InvalidPost;