UNPKG

@strapi/utils

Version:

Shared utilities for the Strapi packages

15 lines (12 loc) 384 B
import { isDynamicZoneAttribute } from '../../content-types.mjs'; import { throwInvalidKey } from '../utils.mjs'; const visitor = ({ key, attribute, path })=>{ if (isDynamicZoneAttribute(attribute)) { throwInvalidKey({ key, path: path.attribute }); } }; export { visitor as default }; //# sourceMappingURL=throw-dynamic-zones.mjs.map