Skip to content

Commit

Permalink
v2.8.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasAribart committed May 10, 2023
1 parent e20ee01 commit 2820148
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions builds/deno/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ declare type UnextendJSONSchema7Tuple<E extends JSONSchema7Extension, S extends
declare type UnextendJSONSchema7Record<E extends JSONSchema7Extension, S extends Record<string, unknown>> = {
[key in keyof S]: S[key] extends ExtendedJSONSchema7$1<E> ? UnextendJSONSchema7<E, S[key]> : S[key];
};
declare type UnextendJSONSchema7<E extends JSONSchema7Extension, S extends ExtendedJSONSchema7$1<E>> = S extends boolean ? S : {
declare type UnextendJSONSchema7<E extends JSONSchema7Extension, S> = S extends boolean ? S : {
[key in $JSONSchema7 | keyof S]: key extends keyof S ? S extends {
[k in key]: ExtendedJSONSchema7$1<E>;
} ? UnextendJSONSchema7<E, S[key]> : S extends {
Expand Down Expand Up @@ -106,8 +106,6 @@ declare type FromSchemaDefaultOptions = {

declare type And<A, B> = A extends true ? B extends true ? true : false : false;

declare type Cast<A, B> = A extends B ? A : never;

declare type DoesExtend<A, B> = [A] extends [B] ? true : false;

declare type If<B extends boolean, T, E = never> = B extends true ? T : E;
Expand Down Expand Up @@ -383,6 +381,6 @@ declare type ExtendedJSONSchema7Reference<E extends JSONSchema7Extension> = Exte
declare type JSONSchema = JSONSchema7;
declare type ExtendedJSONSchema<E extends JSONSchema7Extension> = ExtendedJSONSchema7<E>;
declare 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>>>;
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>;
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;

export { $Compiler, $Validator, Compiler, DeserializationPattern, ExtendedJSONSchema, ExtendedJSONSchema7, ExtendedJSONSchema7Reference, FromExtendedSchema, FromExtendedSchemaOptions, FromSchema, FromSchemaDefaultOptions, FromSchemaOptions, JSONSchema, JSONSchema7, JSONSchema7Extension, JSONSchema7Reference, Validator, asConst, wrapCompilerAsTypeGuard, wrapValidatorAsTypeGuard };
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "json-schema-to-ts",
"version": "2.8.1",
"version": "2.8.2",
"description": "Infer typescript types from your JSON schemas!",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
Expand Down

0 comments on commit 2820148

Please sign in to comment.