Binato/osuTyping.ts
2023-09-10 12:59:22 +01:00

17 lines
No EOL
360 B
TypeScript

import OsuPacketWriter from "./server/interfaces/OsuPacketWriter";
const nodeOsu = require("osu-packet");
export default abstract class osu {
static Bancho = {
Writer: function() : OsuPacketWriter {
return new nodeOsu.Bancho.Writer();
}
};
static Client = {
Reader: function(data:any) : any {
return new nodeOsu.Client.Reader(data);
}
};
}