tsoa
This commit is contained in:
4
node_modules/validator/es/lib/util/assertString.js
generated
vendored
Normal file
4
node_modules/validator/es/lib/util/assertString.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export default function assertString(input) {
|
||||
if (input === undefined || input === null) throw new TypeError("Expected a string but received a ".concat(input));
|
||||
if (input.constructor.name !== 'String') throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
|
||||
}
|
||||
Reference in New Issue
Block a user