16 lines
497 B
Plaintext
16 lines
497 B
Plaintext
import { ZodMapDef } from "zod/v3";
|
|
import { JsonSchema7Type } from "../parseTypes.js";
|
|
import { Refs } from "../Refs.js";
|
|
import { JsonSchema7RecordType } from "./record.js";
|
|
export type JsonSchema7MapType = {
|
|
type: "array";
|
|
maxItems: 125;
|
|
items: {
|
|
type: "array";
|
|
items: [JsonSchema7Type, JsonSchema7Type];
|
|
minItems: 2;
|
|
maxItems: 2;
|
|
};
|
|
};
|
|
export declare function parseMapDef(def: ZodMapDef, refs: Refs): JsonSchema7MapType | JsonSchema7RecordType;
|