forked from Cookies_Github_mirror/AquaDX
AquaNet: got typescript to stop yelling at me, it was driving me up a wall
This commit is contained in:
@@ -104,11 +104,13 @@ export interface MusicMeta {
|
|||||||
composer: string,
|
composer: string,
|
||||||
bpm: number,
|
bpm: number,
|
||||||
ver: number,
|
ver: number,
|
||||||
note: {
|
notes: {
|
||||||
lv: number
|
[key: number]: {
|
||||||
designer: string
|
lv: number
|
||||||
lv_id: number
|
designer: string
|
||||||
notes: number
|
lv_id: number
|
||||||
|
notes: number
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
export let userId: any
|
export let userId: any
|
||||||
userId = +userId
|
userId = +userId
|
||||||
let ifError = null;
|
let ifError: string | null;
|
||||||
|
|
||||||
if (!userId) console.error("No user ID provided")
|
if (!userId) console.error("No user ID provided")
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
title(`Ranking`);
|
title(`Ranking`);
|
||||||
|
|
||||||
let d: { users: GenericRanking[] };
|
let d: { users: GenericRanking[] };
|
||||||
let ifError = null;
|
let ifError: string | null;
|
||||||
Promise.all([GAME.ranking("mai2")])
|
Promise.all([GAME.ranking("mai2")])
|
||||||
.then(([users]) => {
|
.then(([users]) => {
|
||||||
console.log(users)
|
console.log(users)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
export let game: GameName
|
export let game: GameName
|
||||||
game = game || "mai2"
|
game = game || "mai2"
|
||||||
let calElement: HTMLElement
|
let calElement: HTMLElement
|
||||||
let ifError = null
|
let ifError: string | null;
|
||||||
title(`User ${username}`)
|
title(`User ${username}`)
|
||||||
|
|
||||||
interface MusicAndPlay extends MusicMeta, GenericGamePlaylog {}
|
interface MusicAndPlay extends MusicMeta, GenericGamePlaylog {}
|
||||||
|
|||||||
Reference in New Issue
Block a user