mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-29 10:40:35 +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;
|
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();
|
||||||
|
|
Loading…
Reference in a new issue