Function: getMeta()
Makaio Framework / kernel/cli / getMeta
Function: getMeta()
Section titled “Function: getMeta()”getMeta(
schema):GlobalMeta|undefined
Defined in: ../../../packages/kernel/src/cli/schema-utils.ts:25
Extract .meta() from a Zod schema, unwrapping optionals/defaults.
Recursively follows unwrap() so that meta attached to the inner schema
of z.optional(z.string().meta({…})) is still found.
Parameters
Section titled “Parameters”schema
Section titled “schema”The Zod schema to inspect.
Returns
Section titled “Returns”GlobalMeta | undefined
The resolved Zod global metadata or undefined.