AquaNet: got typescript to stop yelling at me, it was driving me up a wall

This commit is contained in:
Galexion
2024-03-01 23:16:14 -05:00
parent e8958f5e53
commit db2a7208da
4 changed files with 10 additions and 8 deletions

View File

@@ -104,12 +104,14 @@ export interface MusicMeta {
composer: string,
bpm: number,
ver: number,
note: {
notes: {
[key: number]: {
lv: number
designer: string
lv_id: number
notes: number
}
}
}
export type AllMusic = { [key: string]: MusicMeta }

View File

@@ -8,7 +8,7 @@
export let userId: any
userId = +userId
let ifError = null;
let ifError: string | null;
if (!userId) console.error("No user ID provided")

View File

@@ -8,7 +8,7 @@
title(`Ranking`);
let d: { users: GenericRanking[] };
let ifError = null;
let ifError: string | null;
Promise.all([GAME.ranking("mai2")])
.then(([users]) => {
console.log(users)

View File

@@ -17,7 +17,7 @@
export let game: GameName
game = game || "mai2"
let calElement: HTMLElement
let ifError = null
let ifError: string | null;
title(`User ${username}`)
interface MusicAndPlay extends MusicMeta, GenericGamePlaylog {}