import { ZodSchema, ZodTypeDef } from 'zod' export const getMapperFromSchema = (schema: ZodSchema) => (input: Input) => schema.parse(input) export const getMapperPFromSchema = (schema: ZodSchema) => (input: Input) => schema.parseAsync(input)