🐛 fix types + packages

This commit is contained in:
Flam3rboy
2021-08-13 19:20:03 +02:00
parent 403de3ef66
commit eaa65db361
10 changed files with 581 additions and 20956 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ class LongSchema extends mongoose.SchemaType {
if (type === "handle" || init == false) return val;
return BigInt(val.toString());
}
if (val instanceof Number || "number" == typeof val) return BigInt(val);
if (val instanceof Number || "number" == typeof val) return BigInt(val as number);
if (!Array.isArray(val) && val.toString) return BigInt(val.toString());
//@ts-ignore
+2 -1
View File
@@ -1,3 +1,4 @@
export default function toBigInt(string: String): BigInt {
export default function toBigInt(string: string): bigint {
return BigInt(string);
}