diff --git a/src/app.d.ts b/src/app.d.ts
index addc02a..6869677 100644
--- a/src/app.d.ts
+++ b/src/app.d.ts
@@ -1,3 +1,4 @@
+///
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
declare global {
diff --git a/src/lib/types.ts b/src/lib/types.ts
index 7f2dab2..ee55d9f 100644
--- a/src/lib/types.ts
+++ b/src/lib/types.ts
@@ -15,7 +15,8 @@ export interface StreamSummary {
export interface Stream extends StreamSummary {
format: string;
description: string | null;
- descriptionHtml: string;
+ // rendered at page load, so absent straight out of the database
+ descriptionHtml?: string;
tracks: Track[];
}
diff --git a/src/routes/streams/+layout.svelte b/src/routes/streams/+layout.svelte
index 3b40de4..2f439d5 100644
--- a/src/routes/streams/+layout.svelte
+++ b/src/routes/streams/+layout.svelte
@@ -1,12 +1,13 @@
diff --git a/src/routes/streams/TagSelect.svelte b/src/routes/streams/TagSelect.svelte
index 70a4358..27c01a6 100644
--- a/src/routes/streams/TagSelect.svelte
+++ b/src/routes/streams/TagSelect.svelte
@@ -24,7 +24,7 @@
});
}
- function handleChange(e) {
+ function handleChange(e: CustomEvent) {
if (e.type === 'clear' && Array.isArray(e.detail)) checked = [];
else
checked.includes(e.detail.value)
@@ -33,7 +33,7 @@
handleSelectable();
}
- let itemFilter = function (label, filterText, option) {
+ let itemFilter = function (label: string, filterText: string, option: { value: string }) {
return (
remainingTags.includes(option['value']) &&
label.toLowerCase().includes(filterText.toLowerCase())
@@ -55,14 +55,13 @@
--max-height="42px"
listOffset={0}
>
- {#snippet item({ item })}
-
-
-
- {/snippet}
+
+
+
+