Skip to main content

Function: int()

int(options)​

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

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

Parameters​

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

Returns​

Property<number | undefined | null>

Defined in​

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

int(options)​

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

Adds an integer property to the entity and allows for configuration of the property.

Parameters​

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

Returns​

Property<number>

Defined in​

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