| 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; |
@@ -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'; |
+1
-1
| { | ||
| "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", |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances
1462739
0.01%16660
0.05%