mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-09 09:12:20 +02:00
changelog: don't type assert to a broken type
The mandatory fields are unset, stop lying to the compiler
This commit is contained in:
parent
383907c2b8
commit
4d237600d5
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue