Skip to main content

Function: date()

date(options)

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

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

Parameters

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

Returns

Property<Date | undefined | null>

Defined in

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

date(options)

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

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

Parameters

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

Returns

Property<Date>

Defined in

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