🎨 fix imports with new build script

This commit is contained in:
Flam3rboy
2021-10-09 01:45:02 +02:00
parent 826b2c9820
commit 41a193dff0
15 changed files with 43 additions and 42 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
import { Payload, Send, setHeartbeat, WebSocket } from "@fosscord/gateway";
import { Payload, WebSocket } from "@fosscord/gateway";
import { setHeartbeat } from "../util/Heartbeat";
import { Send } from "../util/Send";
export async function onHeartbeat(this: WebSocket, data: Payload) {
// TODO: validate payload
+4 -13
View File
@@ -1,14 +1,6 @@
import { WebSocket, Payload } from "@fosscord/gateway";
import {
WebSocket,
CLOSECODES,
Payload,
OPCODES,
genSessionId,
} from "@fosscord/gateway";
import {
Channel,
checkToken,
Guild,
Intents,
Member,
ReadyEventData,
@@ -16,16 +8,15 @@ import {
Session,
EVENTEnum,
Config,
dbConnection,
PublicMemberProjection,
PublicMember,
ChannelType,
PublicUser,
PrivateUserProjection,
} from "@fosscord/util";
import { Send } from "../util/Send";
import { CLOSECODES, OPCODES } from "../util/Constants";
import { genSessionId } from "../util/SessionUtils";
import { setupListener } from "../listener/listener";
import { IdentifySchema } from "../schema/Identify";
import { Send } from "@fosscord/gateway/util/Send";
// import experiments from "./experiments.json";
const experiments: any = [];
import { check } from "./instanceOf";
+3 -1
View File
@@ -5,7 +5,9 @@ import {
Role,
} from "@fosscord/util";
import { LazyRequest } from "../schema/LazyRequest";
import { WebSocket, Send, OPCODES, Payload } from "@fosscord/gateway";
import { Send } from "../util/Send";
import { OPCODES } from "../util/Constants";
import { WebSocket, Payload } from "@fosscord/gateway";
import { check } from "./instanceOf";
import "missing-native-js-functions";