@@ -75,7 +75,7 @@ declare type UnextendJSONSchema7Tuple<E extends JSONSchema7Extension, S extends
7575declare type UnextendJSONSchema7Record < E extends JSONSchema7Extension , S extends Record < string , unknown > > = {
7676 [ key in keyof S ] : S [ key ] extends ExtendedJSONSchema7$1 < E > ? UnextendJSONSchema7 < E , S [ key ] > : S [ key ] ;
7777} ;
78- declare type UnextendJSONSchema7 < E extends JSONSchema7Extension , S extends ExtendedJSONSchema7$1 < E > > = S extends boolean ? S : {
78+ declare type UnextendJSONSchema7 < E extends JSONSchema7Extension , S > = S extends boolean ? S : {
7979 [ key in $JSONSchema7 | keyof S ] : key extends keyof S ? S extends {
8080 [ k in key ] : ExtendedJSONSchema7$1 < E > ;
8181 } ? UnextendJSONSchema7 < E , S [ key ] > : S extends {
@@ -106,8 +106,6 @@ declare type FromSchemaDefaultOptions = {
106106
107107declare type And < A , B > = A extends true ? B extends true ? true : false : false ;
108108
109- declare type Cast < A , B > = A extends B ? A : never ;
110-
111109declare type DoesExtend < A , B > = [ A ] extends [ B ] ? true : false ;
112110
113111declare type If < B extends boolean , T , E = never > = B extends true ? T : E ;
@@ -383,6 +381,6 @@ declare type ExtendedJSONSchema7Reference<E extends JSONSchema7Extension> = Exte
383381declare type JSONSchema = JSONSchema7 ;
384382declare type ExtendedJSONSchema < E extends JSONSchema7Extension > = ExtendedJSONSchema7 < E > ;
385383declare type FromSchema < S extends JSONSchema , Opt extends FromSchemaOptions = FromSchemaDefaultOptions , W extends JSONSchema7$1 = S extends Record < string | number | symbol , unknown > ? DeepWritable < S > : S > = M . $Resolve < ParseSchema < W , ParseOptions < W , Opt > > > ;
386- declare type FromExtendedSchema < E extends JSONSchema7Extension , S extends ExtendedJSONSchema < E > , Opt extends FromExtendedSchemaOptions < E > = FromSchemaDefaultOptions , W extends ExtendedJSONSchema7$1 < E > = Cast < S extends Record < string | number | symbol , unknown > ? DeepWritable < S > : S , ExtendedJSONSchema7$1 < E > > > = FromSchema < Cast < UnextendJSONSchema7 < E , W > , JSONSchema > , Opt > ;
384+ declare type FromExtendedSchema < E extends JSONSchema7Extension , S extends ExtendedJSONSchema < E > , Opt extends FromExtendedSchemaOptions < E > = FromSchemaDefaultOptions , U = UnextendJSONSchema7 < E , S > > = U extends JSONSchema ? FromSchema < U , Opt > : never ;
387385
388386export { $Compiler , $Validator , Compiler , DeserializationPattern , ExtendedJSONSchema , ExtendedJSONSchema7 , ExtendedJSONSchema7Reference , FromExtendedSchema , FromExtendedSchemaOptions , FromSchema , FromSchemaDefaultOptions , FromSchemaOptions , JSONSchema , JSONSchema7 , JSONSchema7Extension , JSONSchema7Reference , Validator , asConst , wrapCompilerAsTypeGuard , wrapValidatorAsTypeGuard } ;
0 commit comments