import { parseDef as e } from "../parseDef.js";
const o = (n, t) => {
  if (t.currentPath.toString() === t.propertyPath?.toString())
    return e(n.innerType._def, t);
  const r = e(n.innerType._def, {
    ...t,
    currentPath: [...t.currentPath, "anyOf", "1"]
  });
  return r ? {
    anyOf: [
      {
        not: {}
      },
      r
    ]
  } : {};
};
export {
  o as parseOptionalDef
};
//# sourceMappingURL=optional.js.map
