From 2fbdb9799aa7aa0776bea1e9371ecc4b6a3d1b02 Mon Sep 17 00:00:00 2001 From: Holly Date: Fri, 6 Oct 2023 09:55:15 +0100 Subject: [PATCH] Remove last instance of explicit any type --- server/SpectatorManager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/SpectatorManager.ts b/server/SpectatorManager.ts index ee06e5d..7d9eae1 100644 --- a/server/SpectatorManager.ts +++ b/server/SpectatorManager.ts @@ -2,6 +2,7 @@ import DataStream from "./objects/DataStream"; import Shared from "./objects/Shared"; import User from "./objects/User"; import osu from "../osuTyping"; +import SpectateFramesData from "./interfaces/SpectateFramesData"; export default class SpectatorManager { private shared:Shared; @@ -41,14 +42,13 @@ export default class SpectatorManager { spectateStream.Send(osuPacketWriter.toBuffer); } - // TODO: Interface for spectateFrameData - public spectatorFrames(user:User, spectateFrameData:any) { + public spectatorFrames(user:User, spectateFramesData:SpectateFramesData) { if (user.spectatorStream === undefined) { return; } const osuPacketWriter = osu.Bancho.Writer(); - osuPacketWriter.SpectateFrames(spectateFrameData); + osuPacketWriter.SpectateFrames(spectateFramesData); user.spectatorStream.Send(osuPacketWriter.toBuffer); }