Skip to main content

Type Alias: GeneratorOptions<T, E>

GeneratorOptions<T, E>: {default: T | (it: E) => T;on: "add";sequence: string;using: Generator; }

Options for generating property values.

Type Parameters

Type ParameterDefault typeDescription
TunknownThe property type.
EunknownThe entity type.

Type declaration

default?

optional default: T | (it: E) => T

The default value, or a function to generate the default value.

on?

optional on: "add"

When to generate the value.

sequence?

optional sequence: string

The sequence to use for the generation strategy.

using?

optional using: Generator

The generation strategy to use.

Defined in

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