@@ -18,33 +18,33 @@ export type Query<T = any> = {
1818} ;
1919export type Recursive < T > = T | RecursiveArray < T > ;
2020export type RecursiveArray < T > = Recursive < T > [ ] ;
21- export type Schema < TypeName extends string = never , Context = unknown , Extensions extends {
21+ export type Schema < TypeName extends string = "" , Context = unknown , Extensions extends {
2222 [ K : string ] : any ;
2323} = { } > = { [ K in TypeName ] : Type < Schema < TypeName , Context , Extensions > , any , any , any , any > ; } ;
2424export type SchemaTypeName < S extends Schema < any , any , any > > = S extends Schema < infer TypeName , infer _ , infer __ > ? TypeName : never ;
2525export type SchemaContext < S extends Schema < any , any , any > > = S extends Schema < infer _ , infer Context , infer __ > ? Context : never ;
2626export type SchemaExtensions < S extends Schema < any , any , any > > = S extends Schema < infer _ , infer __ , infer Extensions > ? Extensions : never ;
27- export type Type < S extends Schema < any , any , any > = Schema < never , unknown , { } > , Input = unknown , Object = unknown , Value = unknown , ResolvedValue = { } > = Recursive < SchemaTypeName < S > | ( ( {
28- optional : Type < S > ;
27+ export type Type < S extends Schema < any , any , any > = Schema < "" , unknown , { } > , Input = unknown , Object = unknown , Value = unknown , ResolvedValue = { } > = Recursive < SchemaTypeName < S > | ( ( {
28+ optional : Type < S , any , any , any , any > ;
2929} | {
30- nullable : Type < S > ;
30+ nullable : Type < S , any , any , any , any > ;
3131} | {
32- arrayOf : Type < S > ;
32+ arrayOf : Type < S , any , any , any , any > ;
3333 minLength ?: number ;
3434 maxLength ?: number ;
3535} | {
3636 oneOf : {
37- [ K : string ] : Type < S > ;
37+ [ K : string ] : Type < S , any , any , any , any > ;
3838 } ;
3939 resolveType : ( value : { } ) => string ;
4040} | {
4141 object : {
42- [ K : string ] : Type < S > ;
42+ [ K : string ] : Type < S , any , any , any , any > ;
4343 } ;
44- defaultType ?: Type < S > ;
44+ defaultType ?: Type < S , any , any , any , any > ;
4545} | {
46- input ?: Type < S > ;
47- type ?: Type < S > ;
46+ input ?: Type < S , any , any , any , any > ;
47+ type ?: Type < S , any , any , any , any > ;
4848 typeInput ?: any ;
4949 resolve ?: ( ( options : {
5050 context : SchemaContext < S > ;
@@ -53,7 +53,7 @@ export type Type<S extends Schema<any, any, any> = Schema<never, unknown, {}>, I
5353 path : string [ ] ;
5454 query : Query ;
5555 schema : S ;
56- type : Type < S > ;
56+ type : Type < S , any , any , any , any > ;
5757 value : Value ;
5858 } ) => any ) | { } | null ;
5959} ) & {
@@ -65,7 +65,7 @@ export type Type<S extends Schema<any, any, any> = Schema<never, unknown, {}>, I
6565 path : string [ ] ;
6666 query : Query ;
6767 schema : S ;
68- type : Type < S > ;
68+ type : Type < S , any , any , any , any > ;
6969 value : Value ;
7070 } ) => number ) ;
7171 defaultValue ?: any ;
@@ -76,7 +76,7 @@ export type Type<S extends Schema<any, any, any> = Schema<never, unknown, {}>, I
7676 path : string [ ] ;
7777 query : Query ;
7878 schema : S ;
79- type : Type < S > ;
79+ type : Type < S , any , any , any , any > ;
8080 value : ResolvedValue ;
8181 } ) => any ;
8282} & SchemaExtensions < S > ) > ;
0 commit comments