summary refs log tree commit diff
path: root/src/util/toBigInt.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-08 16:51:45 +0200
committerGitHub <noreply@github.com>2021-04-08 16:51:45 +0200
commitc5c2af70a5c27a1bc461547a51fb3379416ccf8f (patch)
tree6cdf25485d11d7aae1a2a4efeab10e2b12ae8b86 /src/util/toBigInt.ts
parentMerge branch 'main' of https://github.com/fosscord/fosscord-server-util (diff)
parentadded toBigInt and BigInt getters to bitfields (diff)
downloadserver-c5c2af70a5c27a1bc461547a51fb3379416ccf8f.tar.xz
Merge pull request #4 from notsapinho/main
added toBigInt and BigInt getters to bitfields
Diffstat (limited to 'src/util/toBigInt.ts')
-rw-r--r--src/util/toBigInt.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/toBigInt.ts b/src/util/toBigInt.ts
new file mode 100644

index 00000000..d57c4568 --- /dev/null +++ b/src/util/toBigInt.ts
@@ -0,0 +1,3 @@ +export default function toBigInt(string: String): BigInt { + return BigInt(string); +}