* Get the simple type checker. * * @param {string | string[]} type * @returns {Function} * @private
(type)
| 23 | * @private |
| 24 | */ |
| 25 | function typeChecker (type) { |
| 26 | return function checkType (req) { |
| 27 | return Boolean(typeis(req, type)) |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * Normalizes the common options for all parsers. |