Revision 0.8.5 (#14)
* Remove WeakMap lookup on Validator (Optimization) * Version
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user