util.bitcompat: Add Teal type specification
authorKim Alvefur <zash@zash.se>
Thu, 30 Jun 2022 15:39:03 +0200
changeset 12624 09d86413c3c5
parent 12623 d593cb709525
child 12625 041d067de38b
util.bitcompat: Add Teal type specification
teal-src/util/bitcompat.d.tl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/teal-src/util/bitcompat.d.tl	Thu Jun 30 15:39:03 2022 +0200
@@ -0,0 +1,8 @@
+local record lib
+	band : function (integer, integer, ... : integer) : integer
+	bor : function (integer, integer, ... : integer) : integer
+	bxor : function (integer, integer, ... : integer) : integer
+	lshift : function (integer, integer) : integer
+	rshift : function (integer, integer) : integer
+end
+return lib