We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a33887 commit cd622eeCopy full SHA for cd622ee
src/lib/components/util/Icon.svelte
@@ -1,5 +1,5 @@
1
<script lang="ts">
2
- import type { SvelteComponent } from 'svelte';
+ import type { ComponentType, SvelteComponent } from 'svelte';
3
4
import Check from '$lib/icons/Check.svelte';
5
import GitHub from '$lib/icons/GitHub.svelte';
@@ -10,7 +10,7 @@
10
import Twitter from '$lib/icons/Twitter.svelte';
11
import Warning from '$lib/icons/Warning.svelte';
12
13
- const icons: { [key: string]: typeof SvelteComponent } = {
+ const icons: { [key: string]: ComponentType<SvelteComponent> } = {
14
check: Check,
15
logo: Logo,
16
newtab: NewTab,
0 commit comments