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;
};
const versions = {
const versions: ChangelogData = {
current: {
prerelease: false,
version: `v${pkg.version}`,
changelog: undefined,
url: "", // TODO: properly init
},
expiresAt: -1,
latest: undefined,
packages: undefined,
} as ChangelogData;
};
async function fetch() {
const time = Date.now();