Skip to content

Commit 11adb1d

Browse files
committed
Js_bigint adding operations
1 parent 9052261 commit 11adb1d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

jscomp/others/js_bigint.res

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
/*** JavaScript BigInt API */
22

3-
type t
3+
type t = bigint
4+
5+
external \"~-": t => t = "%negbigint"
6+
external \"~+": t => t = "%identity"
7+
external \"+": (t, t) => t = "%addbigint"
8+
external \"-": (t, t) => t = "%subbigint"
9+
external \"*": (t, t) => t = "%mulbigint"
10+
external \"/": (t, t) => t = "%divbigint"
11+
external mod: (t, t) => t = "%modbigint"

0 commit comments

Comments
 (0)