Refs.d.ts 725 B

123456789101112131415161718192021
  1. import type { ZodTypeDef } from 'zod';
  2. import { Options, Targets } from "./Options.js";
  3. import { JsonSchema7Type } from "./parseDef.js";
  4. export type Refs = {
  5. seen: Map<ZodTypeDef, Seen>;
  6. /**
  7. * Set of all the `$ref`s we created, e.g. `Set(['#/$defs/ui'])`
  8. * this notable does not include any `definitions` that were
  9. * explicitly given as an option.
  10. */
  11. seenRefs: Set<string>;
  12. currentPath: string[];
  13. propertyPath: string[] | undefined;
  14. } & Options<Targets>;
  15. export type Seen = {
  16. def: ZodTypeDef;
  17. path: string[];
  18. jsonSchema: JsonSchema7Type | undefined;
  19. };
  20. export declare const getRefs: (options?: string | Partial<Options<Targets>>) => Refs;
  21. //# sourceMappingURL=Refs.d.ts.map