ciscoheat / sveltekit-superforms

Making SvelteKit forms a pleasure to use!
https://superforms.rocks
MIT License
2.26k stars 66 forks source link

Export ClientValidationAdapter in 'sveltekit-superforms/adapters' #488

Closed bfovez closed 1 month ago

bfovez commented 1 month ago

In a effort to factorize some code, I would need to pass a ValidationAdapter (server-side) or a ClientValidationAdapter (client-side) to a function. Unfortunately, it seems that ClientValidationAdapter is not exported in 'sveltekit-superforms/adapters' (contrary to ValidationAdapter). Is it possible to export ClientValidationAdapter in 'sveltekit-superforms/adapters'?

ciscoheat commented 1 month ago

Sure, I'll add that for the next release.

bfovez commented 1 month ago

Many thanks!

ciscoheat commented 1 month ago

Added now in 2.19.1