--!strict --!optimize 2 --!native local Types = require("../Types") local uint8 = require("./uint8") return { write = function(self: Types.Writer, value: boolean) uint8.write(self, value == true and 1 or 0) end, read = function(self) return uint8.read(self) == 1 and true or 0 end, length = function() return 1 end, } :: Types.DataTypeInterface