Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Remove TypeScript types from starter file

Josh Collinsworth6d0381de9ada
diff --git a/apps/reference/docs/guides/with-sveltekit.mdx b/apps/reference/docs/guides/with-sveltekit.mdx
index 47d16fe4fda..1742e307820 100644
--- a/apps/reference/docs/guides/with-sveltekit.mdx
+++ b/apps/reference/docs/guides/with-sveltekit.mdx
@@ -251,7 +251,7 @@ Let's create a new component for that called `Profile.svelte`.
let website = null
let avatar_url = null
- function getProfile(node: HTMLElement) {
+ function getProfile(node) {
try {
loading = true;
const user = supabase.auth.user();
@@ -269,7 +269,7 @@ Let's create a new component for that called `Profile.svelte`.
}
if (error && status !== 406) throw error;
});
- } catch (error: any) {
+ } catch (error) {
alert(error.message);
} finally {
loading = false;