MCP Apps Kit - v0.5.0
    Preparing search index...

    Type Alias NormalizeSchema<T>

    NormalizeSchema: T extends z.ZodType
        ? T
        : T extends ZodRawShapeRecord
            ? z.ZodObject<{ [K in keyof T]: T[K] }>
            : never

    Normalizes a SchemaInput to a ZodType at the type level.

    • If already a ZodType, returns as-is
    • If a plain object, returns the equivalent ZodObject type

    Type Parameters

    type A = NormalizeSchema<z.ZodString>; // z.ZodString
    type B = NormalizeSchema<{ name: z.ZodString }>; // z.ZodObject<{ name: z.ZodString }>