Socket
Socket
Sign inDemoInstall

zod

Package Overview
Dependencies
Maintainers
1
Versions
361
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zod - npm Package Compare versions

Comparing version 1.7.1 to 1.7.2

15

lib/src/types/object.d.ts

@@ -6,2 +6,3 @@ import * as z from './base';

import { objectUtil } from '../helpers/objectUtil';
import { partialUtil } from '../helpers/partialUtil';
export interface ZodObjectDef<T extends z.ZodRawShape = z.ZodRawShape, Params extends ZodObjectParams = ZodObjectParams> extends z.ZodTypeDef {

@@ -48,15 +49,3 @@ t: z.ZodTypes.object;

partial: () => ZodObject<{ [k in keyof T]: ZodUnion<[T[k], ZodUndefined]>; }, Params>;
deepPartial: () => ZodObject<{ [k in keyof T]: {
object: T[k] extends ZodObject<infer Shape, infer Params_1> ? ZodUnion<[ZodObject<{ [k in keyof Shape]: {
object: Shape[k] extends ZodObject<infer Shape, infer Params_1> ? ZodUnion<[ZodObject<any, Params_1>, ZodUndefined]> : never;
rest: ZodUnion<[Shape[k], ZodUndefined]>;
}[Shape[k] extends ZodObject<any, {
strict: true;
}> ? "object" : "rest"]; }, Params_1>, ZodUndefined]> : never;
rest: ZodUnion<[T[k], ZodUndefined]>;
}[T[k] extends ZodObject<any, {
strict: true;
}> ? "object" : "rest"]; }, {
strict: true;
}>;
deepPartial: () => partialUtil.RootDeepPartial<ZodObject<T>>;
static create: <T_1 extends z.ZodRawShape>(shape: T_1) => ZodObject<T_1, {

@@ -63,0 +52,0 @@ strict: true;

2

package.json
{
"name": "zod",
"version": "1.7.1",
"version": "1.7.2",
"description": "TypeScript-first schema declaration and validation library with static type inference",

@@ -5,0 +5,0 @@ "main": "./lib/src/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc