diff --git a/lib/utils/apply-meta-attributes.js b/lib/utils/apply-meta-attributes.js index cc33bae..092e97f 100644 --- a/lib/utils/apply-meta-attributes.js +++ b/lib/utils/apply-meta-attributes.js @@ -17,6 +17,6 @@ module.exports = function applyMetaAttributes (target, hint, dataItemDefaults) { } ) if (hint.hasOwnProperty('example') && !hint.hasOwnProperty('examples')) { - target['examples'] = [hint.example] + target.examples = [hint.example] } } diff --git a/lib/utils/make-base.js b/lib/utils/make-base.js index c977f2c..32308ca 100644 --- a/lib/utils/make-base.js +++ b/lib/utils/make-base.js @@ -1,7 +1,7 @@ const applyMetaAttributes = require('./apply-meta-attributes') module.exports = function makeBaseObject (hint, typeDefaults) { - let base = { + const base = { typeHint: hint.typeHint } applyMetaAttributes(base, hint, typeDefaults)