Skip to main content

bool Type

Information

  • Stores true or false
  • Requires 1 byte.
  • Use boolean for assignment.

Example Usage

index.ts
import { Serializer, t } from "encodexx"
const serializer = new Serializer({
isAuth: t.bool,
})
serializer.encode({
isAuth: true,
});