File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1- import type { Type } from 'arktype' ;
1+ import type { type } from 'arktype' ;
22import {
33 type ValidationAdapter ,
44 type RequiredDefaultsOptions ,
@@ -18,7 +18,7 @@ async function modules() {
1818
1919const fetchModule = /* @__PURE__ */ memoize ( modules ) ;
2020
21- async function _validate < T extends Type > (
21+ async function _validate < T extends type . Any > (
2222 schema : T ,
2323 data : unknown
2424) : Promise < ValidationResult < Infer < T > > > {
@@ -40,7 +40,7 @@ async function _validate<T extends Type>(
4040 } ;
4141}
4242
43- function _arktype < T extends Type > (
43+ function _arktype < T extends type . Any > (
4444 schema : T ,
4545 options : RequiredDefaultsOptions < Infer < T > >
4646) : ValidationAdapter < Infer < T > , InferIn < T > > {
@@ -52,7 +52,9 @@ function _arktype<T extends Type>(
5252 } ) ;
5353}
5454
55- function _arktypeClient < T extends Type > ( schema : T ) : ClientValidationAdapter < Infer < T > , InferIn < T > > {
55+ function _arktypeClient < T extends type . Any > (
56+ schema : T
57+ ) : ClientValidationAdapter < Infer < T > , InferIn < T > > {
5658 return {
5759 superFormValidationLibrary : 'arktype' ,
5860 validate : async ( data ) => _validate ( schema , data )
Original file line number Diff line number Diff line change 11import type { TSchema , Static as Static$1 } from '@sinclair/typebox' ;
2- import type { Type } from 'arktype' ;
2+ import type { type } from 'arktype' ;
33import type { AnySchema } from 'joi' ;
44import type {
55 Infer as ClassValidatorInfer ,
@@ -73,9 +73,9 @@ type ValidationResult<TOutput = any> =
7373 } ;
7474
7575interface ArkTypeResolver extends Resolver {
76- base : Type ;
77- input : this[ 'schema' ] extends Type ? this[ 'schema' ] [ 'inferIn' ] : never ;
78- output : this[ 'schema' ] extends Type ? this[ 'schema' ] [ 'infer' ] : never ;
76+ base : type . Any ;
77+ input : this[ 'schema' ] extends type . Any ? this[ 'schema' ] [ 'inferIn' ] : never ;
78+ output : this[ 'schema' ] extends type . Any ? this[ 'schema' ] [ 'infer' ] : never ;
7979}
8080
8181interface ClassValidatorResolver extends Resolver {
You can’t perform that action at this time.
0 commit comments