ts-db-helper
Version:
Simple ORM based on TypeScript
16 lines • 665 B
JavaScript
import * as tslib_1 from "tslib";
import { FieldSerializer } from './field-serializer';
var StringFieldSerializer = /** @class */ (function (_super) {
tslib_1.__extends(StringFieldSerializer, _super);
function StringFieldSerializer(fieldName, jsonKey, config) {
var _this = _super.call(this, fieldName, jsonKey, config) || this;
_this.rules.type = 'String';
return _this;
}
StringFieldSerializer.prototype.checkFieldRules = function (data) {
return null;
};
return StringFieldSerializer;
}(FieldSerializer));
export { StringFieldSerializer };
//# sourceMappingURL=string.field-serializer.js.map