Add TypeScript definitions via pg-to-ts and refactor migrations

This commit is contained in:
thiloho
2024-09-10 17:29:57 +02:00
parent 8121be1d96
commit c5fbcdc8bd
50 changed files with 1525 additions and 1632 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts">
const { date }: { date: string } = $props();
const { date }: { date: Date } = $props();
const options: Intl.DateTimeFormatOptions = {
year: "numeric",
@@ -11,6 +11,6 @@
};
</script>
<time datetime={new Date(date).toLocaleString("sv").replace(" ", "T")}>
{new Date(date).toLocaleString("en-us", { ...options })}
<time datetime={date.toLocaleString("sv").replace(" ", "T")}>
{date.toLocaleString("en-us", { ...options })}
</time>