Comparing version 0.0.0-dev.20220802112108 to 0.0.0-dev.20220907144324
@@ -100,19 +100,2 @@ declare namespace AsTypedInternal { | ||
? ResolveNot<T> | ||
: SchemaType extends { | ||
type: "object"; | ||
required?: infer Required; | ||
properties?: infer Props; | ||
additionalProperties?: infer AdditionalProperties; | ||
} | ||
? ResolveObject< | ||
Props, | ||
Required extends undefined | ||
? unknown | ||
: Required extends string[] | ||
? string extends Required[number] | ||
? unknown | ||
: Required[number] | ||
: unknown, | ||
AdditionalProperties | ||
> | ||
: SchemaType extends { type: "array"; items: infer ValueType } | ||
@@ -138,2 +121,19 @@ ? Array<Resolve<ValueType>> | ||
? (Resolve<If> & Resolve<Then>) | Resolve<Else> | ||
: SchemaType extends { | ||
type?: "object"; | ||
required?: infer Required; | ||
properties?: infer Props; | ||
additionalProperties?: infer AdditionalProperties; | ||
} | ||
? ResolveObject< | ||
Props, | ||
Required extends undefined | ||
? unknown | ||
: Required extends string[] | ||
? string extends Required[number] | ||
? unknown | ||
: Required[number] | ||
: unknown, | ||
AdditionalProperties | ||
> | ||
: never; | ||
@@ -140,0 +140,0 @@ |
{ | ||
"name": "as-typed", | ||
"version": "0.0.0-dev.20220802112108", | ||
"version": "0.0.0-dev.20220907144324", | ||
"description": "Static TypeScript types from a literal JSONSchema type", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
14132