refactor: revert "feat: base plugin lib idea (#2308)" (#2336)

* Revert "feat: base plugin lib idea (#2308)"

This reverts commit ffe7cdbc6f.

* fmt
This commit is contained in:
ITOH
2022-07-02 14:24:43 +01:00
committed by GitHub
parent f57b2274e0
commit 03996c5f58
346 changed files with 786 additions and 856 deletions
+7
View File
@@ -0,0 +1,7 @@
export function snowflakeToBigint(snowflake: string) {
return BigInt(snowflake) | 0n;
}
export function bigintToSnowflake(snowflake: bigint) {
return snowflake === 0n ? "" : snowflake.toString();
}