10 lines
No EOL
377 B
TypeScript
10 lines
No EOL
377 B
TypeScript
import { ZodLiteralDef } from 'zod';
|
|
import { Refs } from "../Refs.js";
|
|
export type JsonSchema7LiteralType = {
|
|
type: 'string' | 'number' | 'integer' | 'boolean';
|
|
const: string | number | boolean;
|
|
} | {
|
|
type: 'object' | 'array';
|
|
};
|
|
export declare function parseLiteralDef(def: ZodLiteralDef, refs: Refs): JsonSchema7LiteralType;
|
|
//# sourceMappingURL=literal.d.ts.map
|