Skip to main content
Version: Next

Function: isTypeBool()

isTypeBool(type): type is "core::bool"

Defined in: src/utils/calldata/cairo.ts:124

Checks if the given type is a boolean type.

Parameters

type

string

The type to be checked.

Returns

type is "core::bool"

  • Returns true if the type is a boolean type, otherwise false.