Skip to main content

Function: boolean()

boolean(options)​

boolean(options: {nullable: true; } & Omit<ScalarOptions<boolean>, "name">): Property<boolean | undefined | null>

Adds a nullable boolean property to the entity and allows for configuration of the property.

Parameters​

ParameterTypeDescription
options{nullable: true; } & Omit<ScalarOptions<boolean>, "name">The options for the property.

Returns​

Property<boolean | undefined | null>

Defined in​

packages/verse-core/src/model/builder.ts:691

boolean(options)​

boolean(options?: Omit<ScalarOptions<boolean>, "name">): Property<boolean>

Adds a boolean property to the entity and allows for configuration of the property.

Parameters​

ParameterTypeDescription
options?Omit<ScalarOptions<boolean>, "name">The options for the property.

Returns​

Property<boolean>

Defined in​

packages/verse-core/src/model/builder.ts:699