Conformal TypeScript API
    Preparing search index...

    Function codecFromZod

    • Helper function to create a Codec from a Zod schema.

      Type Parameters

      • T

        The type of the value to encode and decode.

      Parameters

      • schema: ZodType<T>

        The Zod schema to create a codec for.

      Returns Codec<T>

      A Codec for the given Zod schema.