Genkit JS API reference
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _any: true
    _def: z.ZodAnyDef
    _input: any
    _output: any
    _type: any
    "~standard": Props<any, any>
    spa: (
        data: unknown,
        params?: z.util.InexactPartial<z.ParseParams>,
    ) => Promise<z.SafeParseReturnType<any, any>>

    Alias of safeParseAsync

    create: (params?: z.RawCreateParams) => z.ZodAny

    Accessors

    • get description(): string | undefined

      Returns string | undefined

    Methods

    • Parameters

      Returns string

    • Parameters

      • data: unknown

      Returns Result<any> | Promise<Result<any>>

    • Type Parameters

      • B extends string | number | symbol

      Parameters

      • Optionalbrand: B

      Returns z.ZodBranded<z.ZodAny, B>

    • Parameters

      • description: string

      Returns this

    • Returns boolean

    • Returns boolean