summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-02-01 13:00:04 +1100
committerGitHub <noreply@github.com>2023-02-01 13:00:04 +1100
commitda2086696784f4d4d82eb853630e4d94662661dd (patch)
treec8bf2c3b587844f7993d76db555d70f2dbfa0d2b /src/util
parentuse print instead of console.log in client cache so it doesn't output weirdness (diff)
downloadserver-da2086696784f4d4d82eb853630e4d94662661dd.tar.xz
Use erlpack instead of @yukikaze-bot/erlpack (#968)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/imports/Erlpack.ts12
-rw-r--r--src/util/imports/index.ts1
2 files changed, 13 insertions, 0 deletions
diff --git a/src/util/imports/Erlpack.ts b/src/util/imports/Erlpack.ts
new file mode 100644
index 00000000..a69cffbb
--- /dev/null
+++ b/src/util/imports/Erlpack.ts
@@ -0,0 +1,12 @@
+/*
+	https://github.com/discord/erlpack/blob/master/js/index.d.ts
+	MIT License
+	Copyright (c) 2017 Discord
+*/
+/* eslint-disable @typescript-eslint/no-explicit-any */
+// @fc-license-skip
+
+export type ErlpackType = {
+	pack: (data: any) => Buffer;
+	unpack: <T = any>(data: Buffer) => T;
+};
diff --git a/src/util/imports/index.ts b/src/util/imports/index.ts
index 1fd93e45..da0be37c 100644
--- a/src/util/imports/index.ts
+++ b/src/util/imports/index.ts
@@ -17,3 +17,4 @@
 */
 
 export * from "./OrmUtils";
+export * from "./Erlpack";