Socket
Socket
Sign inDemoInstall

@sinclair/typebox

Package Overview
Dependencies
Maintainers
1
Versions
324
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sinclair/typebox - npm Package Compare versions

Comparing version 0.17.0 to 0.17.1

2

package.json
{
"name": "@sinclair/typebox",
"version": "0.17.0",
"version": "0.17.1",
"description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",

@@ -5,0 +5,0 @@ "keywords": [

@@ -265,9 +265,9 @@ export declare const ReadonlyOptionalModifier: unique symbol;

/** `STANDARD` Make all properties in schema object required. */
Required<T extends TObject<TProperties>>(schema: T, options?: CustomOptions): TObject<TRequired<T['properties']>>;
Required<T extends TObject<TProperties>>(schema: T, options?: ObjectOptions): TObject<TRequired<T['properties']>>;
/** `STANDARD` Make all properties in schema object optional. */
Partial<T extends TObject<TProperties>>(schema: T, options?: CustomOptions): TObject<TPartial<T['properties']>>;
Partial<T extends TObject<TProperties>>(schema: T, options?: ObjectOptions): TObject<TPartial<T['properties']>>;
/** `STANDARD` Picks property keys from the given object schema. */
Pick<T extends TObject<TProperties>, K extends PropertyKeys<T['properties']>[]>(schema: T, keys: [...K], options?: CustomOptions): TObject<Pick<T['properties'], K[number]>>;
Pick<T extends TObject<TProperties>, K extends PropertyKeys<T['properties']>[]>(schema: T, keys: [...K], options?: ObjectOptions): TObject<Pick<T['properties'], K[number]>>;
/** `STANDARD` Omits property keys from the given object schema. */
Omit<T extends TObject<TProperties>, K extends PropertyKeys<T['properties']>[]>(schema: T, keys: [...K], options?: CustomOptions): TObject<Omit<T['properties'], K[number]>>;
Omit<T extends TObject<TProperties>, K extends PropertyKeys<T['properties']>[]>(schema: T, keys: [...K], options?: ObjectOptions): TObject<Omit<T['properties'], K[number]>>;
/** `STANDARD` Omits the `kind` and `modifier` properties from the given schema. */

@@ -274,0 +274,0 @@ Strict<T extends TSchema>(schema: T): T;

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