Socket
Socket
Sign inDemoInstall

@sinclair/typebox

Package Overview
Dependencies
0
Maintainers
1
Versions
310
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.32.4 to 0.32.5

4

build/require/value/clean/clean.d.ts
import type { TSchema } from '../../type/schema/index';
/** `[Mutable]` Removes excess properties from a value and returns the result. This function does not check the value and returns an unknown type. You should Check the result before use. Clean is a mutable operation. To avoid mutation, Clone the value first. */
export declare function Clean<T extends TSchema>(schema: T, references: TSchema[], value: unknown): unknown;
export declare function Clean(schema: TSchema, references: TSchema[], value: unknown): unknown;
/** `[Mutable]` Removes excess properties from a value and returns the result. This function does not check the value and returns an unknown type. You should Check the result before use. Clean is a mutable operation. To avoid mutation, Clone the value first. */
export declare function Clean<T extends TSchema>(schema: T): unknown;
export declare function Clean(schema: TSchema, value: unknown): unknown;
import type { TSchema } from '../../type/schema/index';
/** Converts any type mismatched values to their target type if a reasonable conversion is possible. */
export declare function Convert<T extends TSchema>(schema: T, references: TSchema[], value: unknown): unknown;
export declare function Convert(schema: TSchema, references: TSchema[], value: unknown): unknown;
/** Converts any type mismatched values to their target type if a reasonable conversion is possible. */
export declare function Convert<T extends TSchema>(schema: T, value: unknown): unknown;
export declare function Convert(schema: TSchema, value: unknown): unknown;
import type { TSchema } from '../../type/schema/index';
/** `[Mutable]` Generates missing properties on a value using default schema annotations if available. This function does not check the value and returns an unknown type. You should Check the result before use. Default is a mutable operation. To avoid mutation, Clone the value first. */
export declare function Default<T extends TSchema>(schema: T, references: TSchema[], value: unknown): unknown;
export declare function Default(schema: TSchema, references: TSchema[], value: unknown): unknown;
/** `[Mutable]` Generates missing properties on a value using default schema annotations if available. This function does not check the value and returns an unknown type. You should Check the result before use. Default is a mutable operation. To avoid mutation, Clone the value first. */
export declare function Default<T extends TSchema>(schema: T, value: unknown): unknown;
export declare function Default(schema: TSchema, value: unknown): unknown;

@@ -19,9 +19,9 @@ import { type Mutable } from '../mutate/index';

/** `[Mutable]` Removes excess properties from a value and returns the result. This function does not check the value and returns an unknown type. You should Check the result before use. Clean is a mutable operation. To avoid mutation, Clone the value first. */
export declare function Clean<T extends TSchema>(schema: T, references: TSchema[], value: unknown): unknown;
export declare function Clean(schema: TSchema, references: TSchema[], value: unknown): unknown;
/** `[Mutable]` Removes excess properties from a value and returns the result. This function does not check the value and returns an unknown type. You should Check the result before use. Clean is a mutable operation. To avoid mutation, Clone the value first. */
export declare function Clean<T extends TSchema>(schema: T, value: unknown): unknown;
export declare function Clean(schema: TSchema, value: unknown): unknown;
/** Converts any type mismatched values to their target type if a reasonable conversion is possible */
export declare function Convert<T extends TSchema>(schema: T, references: TSchema[], value: unknown): unknown;
export declare function Convert(schema: TSchema, references: TSchema[], value: unknown): unknown;
/** Converts any type mismatched values to their target type if a reasonable conversion is possibl. */
export declare function Convert<T extends TSchema>(schema: T, value: unknown): unknown;
export declare function Convert(schema: TSchema, value: unknown): unknown;
/** Returns a structural clone of the given value */

@@ -34,5 +34,5 @@ export declare function Clone<T>(value: T): T;

/** `[Mutable]` Generates missing properties on a value using default schema annotations if available. This function does not check the value and returns an unknown type. You should Check the result before use. Default is a mutable operation. To avoid mutation, Clone the value first. */
export declare function Default<T extends TSchema>(schema: T, references: TSchema[], value: unknown): unknown;
export declare function Default(schema: TSchema, references: TSchema[], value: unknown): unknown;
/** `[Mutable]` Generates missing properties on a value using default schema annotations if available. This function does not check the value and returns an unknown type. You should Check the result before use. Default is a mutable operation. To avoid mutation, Clone the value first. */
export declare function Default<T extends TSchema>(schema: T, value: unknown): unknown;
export declare function Default(schema: TSchema, value: unknown): unknown;
/** Encodes a value or throws if error */

@@ -39,0 +39,0 @@ export declare function Encode<T extends TSchema, R = StaticEncode<T>>(schema: T, references: TSchema[], value: unknown): R;

{
"name": "@sinclair/typebox",
"version": "0.32.4",
"version": "0.32.5",
"description": "Json Schema Type Builder with Static Type Resolution for TypeScript",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc