Revision 0.8.5 (#14)

* Remove WeakMap lookup on Validator (Optimization)

* Version
This commit is contained in:
sinclairzx81
2025-01-28 06:06:39 +09:00
committed by GitHub
parent 1c25cf2103
commit 38f05613fc
5 changed files with 14 additions and 15 deletions

View File

@@ -90,7 +90,6 @@ export function TypeBox(...args: any[]): never {
options) as never
}
/** Creates a TypeBox type from Syntax or another Type */
export function Type<Parameter extends TParameter, Type extends string>(parameter: Parameter, type: Type, options?: TSyntaxOptions): TTypeBox<Parameter, Type>
/** Creates a TypeBox type from Syntax or another Type */
@@ -99,4 +98,4 @@ export function Type<Type extends object | string>(type: Type, options?: TSyntax
// prettier-ignore
export function Type(...args: any[]): never {
return TypeBox.apply(null, args as never) as never
}
}