Skip to content

Commit 8f215a5

Browse files
localize type
1 parent 2c41030 commit 8f215a5

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

src/lib/components/blog/table-of-contents.svelte

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1+
<script lang="ts" context="module">
2+
export type TocItem = {
3+
title: string;
4+
href: string;
5+
step?: number;
6+
selected?: boolean;
7+
level?: number;
8+
children?: Array<{
9+
title: string;
10+
href: string;
11+
selected: boolean;
12+
level?: number;
13+
}>;
14+
};
15+
</script>
16+
117
<script lang="ts">
2-
import type { TocItem } from '$lib/layouts/DocsArticle.svelte';
318
import { classNames } from '$lib/utils/classnames';
419
import { fade } from 'svelte/transition';
520

src/lib/layouts/DocsArticle.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import { setContext } from 'svelte';
1919
import { writable } from 'svelte/store';
2020
import { Feedback } from '$lib/components';
21-
import { scrollToTop } from '$lib/actions/scrollToTop';
2221
import TableOfContents from '$lib/components/blog/table-of-contents.svelte';
2322
2423
export let title: string;

0 commit comments

Comments
 (0)