• Preparing search index...
  • The search index is not available
Genkit JS API reference
  • Genkit JS API reference
  • genkit
  • /
  • z
  • object

Function object

  • object<T extends z.ZodRawShape>(
        shape: T,
        params?: z.RawCreateParams,
    ): z.ZodObject<
        T,
        "strip",
        z.ZodTypeAny,
        {
            [k in string
            | number
            | symbol]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any>[k]
        },
        { [k_1 in string
        | number
        | symbol]: z.baseObjectInputType<T>[k_1] },
    >
  • Type Parameters

    • T extends z.ZodRawShape

    Parameters

    • shape: T
    • Optionalparams: z.RawCreateParams

    Returns z.ZodObject<
        T,
        "strip",
        z.ZodTypeAny,
        {
            [k in string
            | number
            | symbol]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any>[k]
        },
        { [k_1 in string
        | number
        | symbol]: z.baseObjectInputType<T>[k_1] },
    >

    • Defined in js/node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts:1056

Settings

Member Visibility
Genkit JS API reference
  • Loading...

Generated using TypeDoc with typedoc-github-theme