| import { type TSchema } from '../../types/schema.mjs'; | ||
| import { type TProperties } from '../../types/properties.mjs'; | ||
| import { type TUnion } from '../../types/union.mjs'; | ||
@@ -9,3 +10,3 @@ import { type TObject } from '../../types/object.mjs'; | ||
| import { type TEvaluateIntersect } from './evaluate.mjs'; | ||
| type TIsObjectLike<Type extends TSchema> = Type extends TObject | TTuple ? true : false; | ||
| type TIsObjectLike<Type extends TSchema> = (Type extends TObject<infer _ extends TProperties> ? true : Type extends TTuple<infer _ extends TSchema[]> ? true : false); | ||
| type TIsUnionOperand<Left extends TSchema, Right extends TSchema, IsUnionLeft extends boolean = Left extends TUnion ? true : false, IsUnionRight extends boolean = Right extends TUnion ? true : false, Result extends boolean = IsUnionLeft extends true ? true : IsUnionRight extends true ? true : false> = Result; | ||
@@ -12,0 +13,0 @@ type TDistributeOperation<Left extends TSchema, Right extends TSchema, EvaluatedLeft extends TSchema = TEvaluateType<Left>, EvaluatedRight extends TSchema = TEvaluateType<Right>, IsUnionOperand extends boolean = TIsUnionOperand<EvaluatedLeft, EvaluatedRight>, IsObjectLeft extends boolean = TIsObjectLike<EvaluatedLeft>, IsObjectRight extends boolean = TIsObjectLike<EvaluatedRight>, Result extends TSchema = ([ |
+1
-1
| { | ||
| "name": "typebox", | ||
| "description": "Json Schema Type Builder with Static Type Resolution for TypeScript", | ||
| "version": "1.2.8", | ||
| "version": "1.2.9", | ||
| "keywords": [ | ||
@@ -6,0 +6,0 @@ "typescript", |
1500485
0.01%