UNPKG

@strapi/utils

Version:

Shared utilities for the Strapi packages

17 lines (13 loc) 388 B
'use strict'; var contentTypes = require('../../content-types.js'); var utils = require('../utils.js'); const visitor = ({ key, attribute, path })=>{ if (contentTypes.isDynamicZoneAttribute(attribute)) { utils.throwInvalidKey({ key, path: path.attribute }); } }; module.exports = visitor; //# sourceMappingURL=throw-dynamic-zones.js.map