changelog: don't type assert to a broken type

The mandatory fields are unset, stop lying to the compiler
This commit is contained in:
Reto Brunner 2024-02-24 16:50:25 +01:00
parent 383907c2b8
commit 4d237600d5

View file

@ -28,15 +28,15 @@ export type ChangelogData = {
packages?: boolean; packages?: boolean;
}; };
const versions = { const versions: ChangelogData = {
current: { current: {
prerelease: false,
version: `v${pkg.version}`, version: `v${pkg.version}`,
changelog: undefined, changelog: undefined,
url: "", // TODO: properly init
}, },
expiresAt: -1, expiresAt: -1,
latest: undefined, };
packages: undefined,
} as ChangelogData;
async function fetch() { async function fetch() {
const time = Date.now(); const time = Date.now();