UNPKG

@voiceflow/common

Version:

Junk drawer of utility functions

13 lines 514 B
/** * 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 { ZodSchema } 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) => ZodSchema<JSON, z.ZodTypeDef, JSON>; export {}; //# sourceMappingURL=json.dto.d.ts.map