diff --git a/src/hooks.server.ts b/src/hooks.server.ts
index 6d6e55e..21cb307 100644
--- a/src/hooks.server.ts
+++ b/src/hooks.server.ts
@@ -1,21 +1,22 @@
import { PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY } from '$env/static/public';
import { createServerClient } from '@supabase/ssr';
import type { Handle } from '@sveltejs/kit';
+import type { CookieSerializeOptions } from 'cookie';
export const handle: Handle = async ({ event, resolve }) => {
event.locals.supabase = createServerClient(PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY, {
cookies: {
- get: (key) => event.cookies.get(key),
+ get: (key: string) => event.cookies.get(key),
/**
* Note: You have to add the `path` variable to the
* set and remove method due to sveltekit's cookie API
* requiring this to be set, setting the path to an empty string
* will replicate previous/standard behaviour (https://kit.svelte.dev/docs/types#public-types-cookies)
*/
- set: (key, value, options) => {
+ set: (key: string, value: string, options: CookieSerializeOptions) => {
event.cookies.set(key, value, { ...options, path: '/' });
},
- remove: (key, options) => {
+ remove: (key: string, options: CookieSerializeOptions) => {
event.cookies.delete(key, { ...options, path: '/' });
}
}
diff --git a/src/lib/components/Pagination.svelte b/src/lib/components/Pagination.svelte
index 00448ed..34725be 100644
--- a/src/lib/components/Pagination.svelte
+++ b/src/lib/components/Pagination.svelte
@@ -11,8 +11,8 @@
currentPage = Math.max(currentPage - 1, 1);
}
- function setItemsPerPage(event: any) {
- itemsPerPage = parseInt(event.target.value, 10);
+ function setItemsPerPage(event: Event) {
+ itemsPerPage = parseInt((event.target as HTMLSelectElement).value, 10);
}
diff --git a/src/lib/components/SignIn.svelte b/src/lib/components/SignIn.svelte
index 333ae56..2260d00 100644
--- a/src/lib/components/SignIn.svelte
+++ b/src/lib/components/SignIn.svelte
@@ -1,4 +1,5 @@
diff --git a/src/lib/components/SignUp.svelte b/src/lib/components/SignUp.svelte
index 19ceab8..1d010a4 100644
--- a/src/lib/components/SignUp.svelte
+++ b/src/lib/components/SignUp.svelte
@@ -1,4 +1,5 @@
@@ -599,7 +593,6 @@
{#if pokedex.description}
{pokedex.description}
{/if}
-
@@ -637,6 +630,7 @@
bind:combinedData
bind:boxNumbers
bind:creatingRecords
+ {totalRecordsCreated}
bind:failedToLoad
{markBoxAsNotCaught}
{markBoxAsCaught}