Remove last instance of explicit any type
This commit is contained in:
parent
a32ab80f73
commit
2fbdb9799a
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue