Argument of type 'ObjectSchema<{ test: StringSchema<string>; }, undefined, { test: string; }>' is not assignable to parameter of type 'BaseSchema | BaseSchemaAsync'.
Type 'ObjectSchema<{ test: StringSchema<string>; }, undefined, { test: string; }>' is not assignable to type 'BaseSchema'.
The types returned by '_parse(...)' are incompatible between these types.
Type 'SchemaResult<{ test: string; }>' is not assignable to type '_ParseResult<any>'.
Type 'UntypedSchemaResult' is not assignable to type '_ParseResult<any>'.
Type 'UntypedSchemaResult' is not assignable to type '{ output: any; issues?: undefined; }'.
Types of property 'issues' are incompatible.
Type 'Issues' is not assignable to type 'undefined'.ts(2345)
Currently, toTypedSchema returns TS error with valibot@0.22.0:
Code:
Error: