[READ-ONLY] Mirror of https://github.com/probablykasper/niceform. Convenient form validation and typing for SvelteKit
0

Configure Feed

Select the types of activity you want to include in your feed.

Use strict

authored by

Kasper and committed by
GitHub
(Feb 2, 2025, 2:01 PM +0100) 7594abf5 1961a8c4

+1 -1
+1 -1
niceform.ts
··· 78 78 data?: D, 79 79 ): Promise<D extends object ? NiceFormServer<Z> : NiceForm<Z>> { 80 80 if (data) { 81 - const sf_form = await superValidate(data, zod_adapter(schema)) 81 + const sf_form = await superValidate(data, zod_adapter(schema), { strict: true ) 82 82 let translated_single_error_message = '' 83 83 let single_error_message = '' 84 84 for (const [key, field_errors] of Object.entries(sf_form.errors)) {