Skip to content

Open-source AI podcast clipper. Generate vertical clips with face tracking and burned-in captions. CLI, MCP server, web app.

249 B
Raw Blame
import { z } from "zod";

/** Reads a null from an external process as an absent value, matching an optional TypeScript field. */
export const absentWhenNull = <T extends z.ZodType>(schema: T) =>
  schema.nullish().transform((v) => v ?? undefined);