KC's Workspace
    Preparing search index...

    Variable zJsonFileConst

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

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