Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

booleanProp

Creates a boolean property schema.

Param

Default boolean value

Param

Property options

Call Signature

booleanProp(defaultValue, options): PropertySchema<boolean, "boolean", true>

Defined in: packages/sigma/src/primitives/schema.ts:225

Creates a boolean property schema with variable support.

Parameters

defaultValue

boolean

options

PropertyOptionsWithVariable

Returns

PropertySchema<boolean, "boolean", true>

Call Signature

booleanProp(defaultValue, options?): PropertySchema<boolean, "boolean", false>

Defined in: packages/sigma/src/primitives/schema.ts:234

Creates a boolean property schema without variable support.

Parameters

defaultValue

boolean

options?

PropertyOptionsNoVariable

Returns

PropertySchema<boolean, "boolean", false>