@voiceflow/common
Version:
Junk drawer of utility functions
13 lines • 540 B
TypeScript
/**
* Copied from the implementation found in `@nest-zod/z` since it recommended to migrate to bare `zod`
* https://github.com/BenLorantfy/nestjs-zod/blob/main/packages/z/src/z/generic-types/json.ts
*/
import type { ZodType } from 'zod';
import { z } from 'zod';
type Literal = boolean | number | string;
export type JSON = Literal | {
[key: string]: JSON;
} | JSON[];
export declare const zJSON: (message?: string) => ZodType<JSON, unknown, z.core.$ZodTypeInternals<JSON, unknown>>;
export {};
//# sourceMappingURL=json.dto.d.ts.map