hipthrusts - v1.2.0
    Preparing search index...

    Function htZodFactory

    • Returns {
          PojoToValidated: <
              TPojoKey extends string,
              TSchema extends ZodType<any, any, any>,
              TContextIn extends { [key in string]: any },
          >(
              pojoKey: TPojoKey,
              schema: TSchema,
              newValidatedKey: string,
          ) => {
              loadResources: (
                  htCtx: TContextIn,
              ) => { [key: string]: output<TSchema> };
          };
          RedactResponseWithZod: <
              TSafeResponse extends any,
              TSchema extends ZodType<any, any, any>,
          >(
              schema: TSchema,
          ) => { redactResponse: (unsafe: any, context?: any) => TSafeResponse };
          SanitizeInputsSlicesWithZod: <
              TShapes extends Record<string, ZodType<any, any, any>>,
          >(
              shapes: TShapes,
          ) => {
              sanitizeInputs: (htCtx: TContextIn) => SafeSlices & HasUnsafeSlices;
          };
          SanitizeInputsWithZod: <
              TSafe extends any,
              TSchema extends ZodType<any, any, any>,
              TUnsafe extends object,
          >(
              schema: TSchema,
          ) => { sanitizeInputs: (htCtx: TUnsafe) => TSafe };
          stripIdTransform: (obj: any) => any;
      }