Skip to main content

Function: number()

number(options)

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

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

Parameters

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

Returns

Property<number | undefined | null>

Source

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

number(options)

number(options?: Omit ↗️ <NumberOptions, "name">): Property<number>

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

Parameters

ParameterTypeDescription
options?Omit ↗️ <NumberOptions, "name">The options for the property.

Returns

Property<number>

Source

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