mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-08 13:57:26 +08:00
AquaNet: got typescript to stop yelling at me, it was driving me up a wall
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user