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

    Type Alias AssertZodShape<T>

    AssertZodShape: { [K in keyof T]: T[K] extends z.ZodType ? T[K] : never }

    Helper type that enforces all properties in T are Zod schemas. Returns never for any property that is not a Zod schema, which causes TypeScript to error when the type is used in a function parameter.

    Type Parameters

    • T
    // Valid - all properties are Zod schemas
    type Valid = AssertZodShape<{ name: z.ZodString }>; // { name: z.ZodString }

    // Invalid - 'age' is not a Zod schema
    type Invalid = AssertZodShape<{ name: z.ZodString; age: number }>; // { name: z.ZodString; age: never }