We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d1ed9d commit 9decbadCopy full SHA for 9decbad
1 file changed
src/routes/threads/authors/[id]/+page.server.ts
@@ -1,6 +1,7 @@
1
import { error } from '@sveltejs/kit';
2
import { DEFAULT_HOST } from '$lib/utils/metadata';
3
import { getAuthor, getAuthorThreads } from '../../helpers.js';
4
+import type { DiscordThread } from '../../types.js';
5
6
export const load = async ({ params }) => {
7
let author;
@@ -10,7 +11,7 @@ export const load = async ({ params }) => {
10
11
error(404, 'Author not found');
12
}
13
- let threads = [];
14
+ let threads: DiscordThread[] = [];
15
let total = 0;
16
try {
17
({ threads, total } = await getAuthorThreads(params.id));
0 commit comments