🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

typebox

Package Overview
Dependencies
Maintainers
1
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typebox - npm Package Compare versions

Comparing version
1.3.4
to
1.3.5
+1
-4
build/compile/validator.d.mts
import { type TLocalizedValidationError } from '../error/index.mjs';
import { type StaticDecode, type StaticEncode, type TProperties, type TSchema } from '../type/index.mjs';
import { BuildResult, EvaluateResult } from '../schema/index.mjs';
export declare class Validator<Context extends TProperties = TProperties, Type extends TSchema = TSchema, Encode extends unknown = StaticEncode<Type, Context>, Decode extends unknown = StaticDecode<Type, Context>> {

@@ -8,6 +7,4 @@ private readonly hasCodec;

private readonly evaluateResult;
/** Constructs a Validator with the given Context and Type. */
/** Constructs a Validator. */
constructor(context: Context, type: Type);
/** Constructs a Validator with the given arguments. */
constructor(hasCodec: boolean, buildResult: BuildResult, evaluateResult: EvaluateResult);
/** Returns true if this Validator is using JIT acceleration. */

@@ -14,0 +11,0 @@ IsAccelerated(): boolean;

@@ -12,1 +12,6 @@ import { type TSchema, type TSchemaOptions } from '../types/schema.mjs';

export declare function ReadonlyObject<Type extends TSchema>(type: Type, options?: TSchemaOptions): TReadonlyObject<Type>;
/**
* This type has been renamed to ReadonlyObject.
* @deprecated
*/
export declare const ReadonlyType: typeof ReadonlyObject;

@@ -12,1 +12,9 @@ // deno-fmt-ignore-file

}
// ------------------------------------------------------------------
// Alias
// ------------------------------------------------------------------
/**
* This type has been renamed to ReadonlyObject.
* @deprecated
*/
export const ReadonlyType = ReadonlyObject;
+1
-1

@@ -22,3 +22,3 @@ export { Instantiate, type TInstantiate } from './type/engine/instantiate.mjs';

export { Pick, type TPick, type TPickDeferred } from './type/action/pick.mjs';
export { ReadonlyObject, type TReadonlyObject, type TReadonlyObjectDeferred } from './type/action/readonly_object.mjs';
export { ReadonlyObject, ReadonlyType, type TReadonlyObject, type TReadonlyObjectDeferred } from './type/action/readonly_object.mjs';
export { Required, type TRequired, type TRequiredDeferred } from './type/action/required.mjs';

@@ -25,0 +25,0 @@ export { ReturnType, type TReturnType, type TReturnTypeDeferred } from './type/action/return_type.mjs';

@@ -34,3 +34,3 @@ // ------------------------------------------------------------------

export { Pick } from './type/action/pick.mjs';
export { ReadonlyObject } from './type/action/readonly_object.mjs';
export { ReadonlyObject, ReadonlyType } from './type/action/readonly_object.mjs';
export { Required } from './type/action/required.mjs';

@@ -37,0 +37,0 @@ export { ReturnType } from './type/action/return_type.mjs';

{
"name": "typebox",
"description": "Json Schema Type Builder with Static Type Resolution for TypeScript",
"version": "1.3.4",
"version": "1.3.5",
"keywords": [

@@ -6,0 +6,0 @@ "typescript",