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 parameter | Value | Description |
---|---|---|
T | unknown | The property type. |
E | unknown | The 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.