diff --git a/src/macrofier/types.mjs b/src/macrofier/types.mjs index b3f1d26b..f67acb4c 100644 --- a/src/macrofier/types.mjs +++ b/src/macrofier/types.mjs @@ -473,7 +473,7 @@ const insertTupleMacros = (content, schema, module, title, options) => { const getPrimitiveType = (type, templateDir = 'types') => { const template = getTemplate(path.join(templateDir, type)) || getTemplate(path.join(templateDir, 'generic')) - return (title ? template || primitives[type] || template) + return (title ? template : primitives[type] || template) } const pickBestType = types => Array.isArray(types) ? types.find(t => t !== 'null') : types