From b8d5d62cfe5d1c6e6d9ba7448610fedf24fcc2f3 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Mon, 20 Nov 2023 00:57:15 +1100 Subject: [PATCH] Remove explicit sveltekit typing (#490) --- src/routes/events/+page.svelte | 3 +-- src/routes/events/+page.ts | 3 +-- src/routes/recipes/+layout.ts | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/routes/events/+page.svelte b/src/routes/events/+page.svelte index da21c194d..12e70c665 100644 --- a/src/routes/events/+page.svelte +++ b/src/routes/events/+page.svelte @@ -2,8 +2,7 @@ import Societies from '$lib/components/Societies/index.svelte'; import EventListElement from '$lib/components/EventListElement/index.svelte'; import Seo from '$lib/components/Seo.svelte'; - import type { PageData } from './$types'; - export let data: PageData; + export let data; diff --git a/src/routes/events/+page.ts b/src/routes/events/+page.ts index 5d1b95a52..e9126e5a6 100644 --- a/src/routes/events/+page.ts +++ b/src/routes/events/+page.ts @@ -1,8 +1,7 @@ import { error } from '@sveltejs/kit'; -import type { PageLoad } from './$types'; import { getPages } from '../pageList'; -export async function load(): Promise { +export async function load() { const events = await getPages(import.meta.glob('./**/*.svx')); if (events) { diff --git a/src/routes/recipes/+layout.ts b/src/routes/recipes/+layout.ts index 2e3b9b9e2..495d14de0 100644 --- a/src/routes/recipes/+layout.ts +++ b/src/routes/recipes/+layout.ts @@ -1,9 +1,8 @@ import { error } from '@sveltejs/kit'; import '$styles/highlight.css'; -import type { PageLoad } from './$types'; import { getPages } from '../pageList'; -export async function load(): Promise { +export async function load() { const pages = (await getPages(import.meta.glob('./**/*.svx'))).map((element) => ({ ...element, path: '/recipes' + element.path.substring(1)