Function markdownTableFromZodSchema

  • Experimental

    Creates a markdown table from a Zod schema.

    Type Parameters

    • S extends AnyZodObject

    Parameters

    • schema: S

      The Zod schema to convert.

    Returns {
        error: Error;
        value?: undefined;
    } | {
        error?: undefined;
        value: string;
    }