UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 389 B
import e from"zod";const t=e=>typeof e==`object`&&!!e&&(`localized`in e||`default`in e),n=e=>typeof e==`object`&&!!e&&`validation`in e,r=e=>typeof e==`object`&&!!e&&`zod`in e,i=(t,n)=>{if(t===void 0)return n;try{return e.toJSONSchema(t)}catch{return n}};export{t as hasRuntimeConfig,n as hasValidationConfig,r as hasZodValidation,i as zodToJsonSchema}; //# sourceMappingURL=helpers.mjs.map