Skip to content

Commit 26277fc

Browse files
committed
use svelte-ignore
1 parent e0d7eab commit 26277fc

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/lib/components/DefaultElement.svelte

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,8 @@
33
<script lang="ts">
44
import type { Element } from 'slate';
55
6-
export const element: Element = {
7-
children: [
8-
{
9-
text: "default",
10-
}
11-
]
12-
}
6+
// svelte-ignore unused-export-let
7+
export let element: Element;
138
export let isInline: boolean;
149
export let isVoid: boolean;
1510
export let contenteditable: boolean;

src/lib/components/DefaultLeaf.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
<script lang="ts">
44
import type { Text } from 'slate';
55
6-
export const leaf: Text = {
7-
text: "default",
8-
};
6+
// svelte-ignore unused-export-let
7+
export let leaf: Text;
98
</script>
109

1110
<span data-slate-leaf="true"><slot /></span>

0 commit comments

Comments
 (0)