Skip to content

Commit 9decbad

Browse files
committed
Fix implicit any type on threads array
1 parent 7d1ed9d commit 9decbad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/routes/threads/authors/[id]/+page.server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { error } from '@sveltejs/kit';
22
import { DEFAULT_HOST } from '$lib/utils/metadata';
33
import { getAuthor, getAuthorThreads } from '../../helpers.js';
4+
import type { DiscordThread } from '../../types.js';
45

56
export const load = async ({ params }) => {
67
let author;
@@ -10,7 +11,7 @@ export const load = async ({ params }) => {
1011
error(404, 'Author not found');
1112
}
1213

13-
let threads = [];
14+
let threads: DiscordThread[] = [];
1415
let total = 0;
1516
try {
1617
({ threads, total } = await getAuthorThreads(params.id));

0 commit comments

Comments
 (0)