song type schema stuff

This commit is contained in:
2026-02-06 11:37:39 -08:00
parent f63841e69f
commit 8cb04e0295
3 changed files with 57 additions and 45 deletions

View File

@@ -1,12 +1,12 @@
import type { SongFilters } from "$lib/db/client-db";
import { db, ensureSeeded, getSongsWithFilters } from "$lib/db/client-db";
import type { PageLoad } from "./$types";
import { SearchParamsSchema } from "./schema";
import { SearchParamsSchemaServer } from "./schema";
export const load: PageLoad = async ({ url, fetch, depends }) => {
depends("clientdb:songs");
const parsed = SearchParamsSchema.safeParse(
const parsed = SearchParamsSchemaServer.safeParse(
Object.fromEntries(url.searchParams.entries()),
);