Skip to content

Commit

Permalink
Remove explicit sveltekit typing (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored Nov 19, 2023
1 parent b758d71 commit b8d5d62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/routes/events/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
</script>

<Seo title="Events" />
Expand Down
3 changes: 1 addition & 2 deletions src/routes/events/+page.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { error } from '@sveltejs/kit';
import type { PageLoad } from './$types';
import { getPages } from '../pageList';

export async function load(): Promise<PageLoad> {
export async function load() {
const events = await getPages(import.meta.glob('./**/*.svx'));

if (events) {
Expand Down
3 changes: 1 addition & 2 deletions src/routes/recipes/+layout.ts
Original file line number Diff line number Diff line change
@@ -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<PageLoad> {
export async function load() {
const pages = (await getPages(import.meta.glob('./**/*.svx'))).map((element) => ({
...element,
path: '/recipes' + element.path.substring(1)
Expand Down

0 comments on commit b8d5d62

Please sign in to comment.