tsgoose
Version:
TypeScript decorators for Mongoose
12 lines (11 loc) • 344 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var data_1 = require("./data");
function TSGooseSchemaOptions(options) {
return function (target) {
var name = target.name;
data_1.schemaOptions[name] = options;
return target;
};
}
exports.TSGooseSchemaOptions = TSGooseSchemaOptions;