Skip to content

Commit a8ebd74

Browse files
committed
remove unneeded types
1 parent cb72efe commit a8ebd74

30 files changed

Lines changed: 36 additions & 57 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { listContent } from '$lib/server/content';
22
import { ContentType } from '$lib/types';
3-
import type { PageServerLoad } from './$types';
3+
44

55
const contentType = ContentType.post;
66

@@ -9,4 +9,4 @@ export const load = (async () => {
99
contentType,
1010
...(await listContent({ contentType }))
1111
};
12-
}) satisfies PageServerLoad;
12+
});
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { listContent } from '$lib/server/content';
22
import { ContentType } from '$lib/types';
3-
import type { PageServerLoad } from './$types';
43

54
const contentType = ContentType.course;
65

@@ -9,4 +8,4 @@ export const load = (async () => {
98
contentType,
109
...(await listContent({ contentType }))
1110
};
12-
}) satisfies PageServerLoad;
11+
});
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { listContent } from '$lib/server/content';
22
import { ContentType } from '$lib/types';
3-
import type { PageServerLoad } from './$types';
43

54
const contentType = ContentType.course;
65

@@ -9,4 +8,4 @@ export const load = (async () => {
98
contentType,
109
...(await listContent({ contentType }))
1110
};
12-
}) satisfies PageServerLoad;
11+
})
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { listContent } from '$lib/server/content';
22
import { ContentType } from '$lib/types';
3-
import type { PageServerLoad } from './$types';
43

54
const contentType = ContentType.language;
65

@@ -9,4 +8,4 @@ export const load = (async () => {
98
contentType,
109
...(await listContent({ contentType }))
1110
};
12-
}) satisfies PageServerLoad;
11+
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { listContent } from '$lib/server/content';
22
import { ContentType } from '$lib/types';
3-
import type { PageServerLoad } from './$types';
3+
44

55
const contentType = ContentType.podcast;
66

@@ -9,4 +9,4 @@ export const load = (async () => {
99
contentType,
1010
...(await listContent({ contentType }))
1111
};
12-
}) satisfies PageServerLoad;
12+
});

apps/codingcatdev/src/routes/(content-list)/schedule/+page.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { listContent } from '$lib/server/content';
22
import { ContentPublished, ContentType } from '$lib/types';
3-
import type { PageServerLoad } from './$types';
3+
44

55
const contentType = ContentType.podcast;
66

@@ -12,4 +12,4 @@ export const load = (async () => {
1212
contentFilter: (c) => c.published === ContentPublished.draft
1313
}))
1414
};
15-
}) satisfies PageServerLoad;
15+
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { listContent } from '$lib/server/content';
22
import { ContentType } from '$lib/types';
3-
import type { PageServerLoad } from './$types';
3+
44

55
const contentType = ContentType.tutorial;
66

@@ -9,4 +9,4 @@ export const load = (async () => {
99
contentType,
1010
...(await listContent({ contentType }))
1111
};
12-
}) satisfies PageServerLoad;
12+
});

apps/codingcatdev/src/routes/(content-list)/tutorials/+page.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import ContentCards from '../ContentCards.svelte';
33
import { ContentType } from '$lib/types/index';
44
5-
/** @type {import('./$types').PageData} */
65
export let data;
76
</script>
87

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { listContent } from '$lib/server/content';
22
import { ContentType } from '$lib/types';
3-
import type { LayoutServerLoad } from './$types';
43

54
export const load = (async () => {
65
return {
@@ -9,4 +8,4 @@ export const load = (async () => {
98
podcast: await (await listContent({ contentType: ContentType.podcast, limit: 3 })).content,
109
post: await (await listContent({ contentType: ContentType.post, limit: 3 })).content
1110
};
12-
}) satisfies LayoutServerLoad;
11+
});

apps/codingcatdev/src/routes/(content-single)/(non-course)/+layout.svelte

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import RecentPostsList from './RecentPostsList.svelte';
44
import { ContentType } from '$lib/types';
55
6-
import type { LayoutData } from './$types';
7-
export let data: LayoutData;
6+
export let data;
87
</script>
98

109
<!-- App Shell -->
@@ -19,7 +18,7 @@
1918
<!-- Div takes up same room as fixed -->
2019
<div class="w-[19.5rem] xl:w-96" />
2120
<div class="fixed top-[5.125rem] bottom-24 w-[19.5rem] xl:w-96 py-10 overflow-y-auto">
22-
<div class="px-8 flex flex-col gap-2 md:gap-8">
21+
<div class="flex flex-col gap-2 px-8 md:gap-8">
2322
<TableOfContents target=".markdown" />
2423
<RecentPostsList contentType={ContentType.course} list={data.course} />
2524
<RecentPostsList contentType={ContentType.tutorial} list={data.tutorial} />
@@ -29,7 +28,7 @@
2928
</div>
3029
</svelte:fragment>
3130
<svelte:fragment slot="bcu-app-shell-page-footer">
32-
<div class="px-2 flex flex-col gap-2 md:gap-8">
31+
<div class="flex flex-col gap-2 px-2 md:gap-8">
3332
<RecentPostsList contentType={ContentType.course} list={data.course} />
3433
<RecentPostsList contentType={ContentType.tutorial} list={data.tutorial} />
3534
<RecentPostsList contentType={ContentType.podcast} list={data.podcast} />

0 commit comments

Comments
 (0)