import * as v from 'valibot'
import { superValidate } from 'sveltekit-superforms'
const schema = v.object({
name: v.string()
})
const form = await superValidate(request, valibot(schema))
I get the error:
Argument of type 'ObjectSchema<{ readonly name: StringSchema<undefined>; }, undefined>' is not assignable to parameter of type 'SupportedSchemas'.
Type 'ObjectSchema<{ readonly name: StringSchema<undefined>; }, undefined>' is missing the following properties from type 'GenericSchema<unknown, unknown, BaseIssue<unknown>>': '~standard', '~run'
Description
Given this:
I get the error:
Versions