Current Path : /home/infinitibizsol/.trash/node_modules.5/joi/lib/types/ |
Current File : /home/infinitibizsol/.trash/node_modules.5/joi/lib/types/object.js |
'use strict'; const Keys = require('./keys'); const internals = {}; module.exports = Keys.extend({ type: 'object', cast: { map: { from: (value) => value && typeof value === 'object', to(value, helpers) { return new Map(Object.entries(value)); } } } });