An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Added types for form
dominicbachmanna17b7a564e18
diff --git a/src/lib/form.ts b/src/lib/form.tsindex 08099576d3..5a7d65e238 100644--- a/src/lib/form.ts+++ b/src/lib/form.ts@@ -1,5 +1,6 @@import { toast } from '@zerodevx/svelte-toast';-export function errorNotification(message: string) {++export function errorNotification(message: string): void {console.error(message);if (typeof message !== 'string') {toast.push('Ooops, something is not okay, are you okay?');@@ -30,7 +31,7 @@ export function enhance(e.preventDefault();let body = new FormData(form);- let parsedData = body;+ const parsedData = body;body.forEach((data, key) => {if (data === '' || data === null) parsedData.delete(key);