MCPcopy
hub / github.com/sequelize/sequelize / INTEGER

Class INTEGER

src/data-types.js:247–254  ·  view source on GitHub ↗

* A 32 bit integer

Source from the content-addressed store, hash-verified

245 * A 32 bit integer
246 */
247class INTEGER extends NUMBER {
248 validate(value) {
249 if (!Validator.isInt(String(value))) {
250 throw new sequelizeErrors.ValidationError(util.format(`%j is not a valid ${this.key.toLowerCase()}`, value));
251 }
252 return true;
253 }
254}
255
256/**
257 * A 8 bit integer

Callers 1

data-types.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected