MCPcopy
hub / github.com/sequelize/sequelize / validate

Method validate

lib/data-types.js:136–141  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

134 }
135 }
136 validate(value) {
137 if (typeof value !== 'string') {
138 throw new sequelizeErrors.ValidationError(util.format('%j is not a valid string', value));
139 }
140 return true;
141 }
142}
143
144/**

Callers

nothing calls this directly

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected