KC's Workspace
    Preparing search index...

    Variable zYamlFileConst

    Zod schema for parsing YAML file path input to object. Use .optional() for optional fields.

    const schema = z.object({ config: zYamlFile });
    schema.parse({ config: "./config.yaml" }); // { config: { key: "value" } }