web/changelogs: make date attribute required

This commit is contained in:
dumbmoron 2024-07-21 11:30:06 +00:00
parent ebaa209c47
commit 534af330ce
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
export let version: string; export let version: string;
export let title: string; export let title: string;
export let date: string | undefined; export let date: string;
export let banner: { file: string; alt: string } | undefined; export let banner: { file: string; alt: string } | undefined;
let bannerLoaded = false; let bannerLoaded = false;

View file

@ -2,7 +2,7 @@ import type { SvelteComponent } from "svelte"
export interface ChangelogMetadata { export interface ChangelogMetadata {
title: string, title: string,
date?: string date: string
banner?: { banner?: {
file: string, file: string,
alt: string alt: string