Skip to content

Commit

Permalink
TypeScriptWorks
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Jan 3, 2024
1 parent 209c493 commit 1a509ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/components/ItemList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
};
</script>

<script lang="ts">
<script lang="ts" generics="T extends classTypes[keyof classTypes]">
import { settings } from '$lib/settings';
import type { classTypes } from '$lib/data/contentManager';
import { onMount } from 'svelte';
import { goto } from '$app/navigation';
import { page } from '$app/stores';
export let items: classTypes[keyof classTypes][] = [];
export let items: T[] = [];
export let selected = items[0];
export let columns: columnType<classTypes[keyof classTypes]>[];
export let columns: columnType<T>[];
let remainingSpan = Math.max(
1,
Expand Down

0 comments on commit 1a509ca

Please sign in to comment.