Interface ExactOptions<TEntriesModel>

Additional options for the map schema.

Type Parameters

Hierarchy

Properties

duplicates?: "reject" | "collect" | "overwrite"

How to handle duplicate entries of the map.

Can be one of:

  • 'collect' to collect duplicates into one value. It is a good idea to declared map entry schemas as lists or multi-values.
  • 'overwrite' (the default) to entry value each time it is received. The value specified the last takes precedence.
  • 'reject' to reject duplicate entries.
extra?: false
where?: UcConstraints<InferExplicit<TEntriesModel>, UcMap.Schema<TEntriesModel, false>> | readonly UcConstraints<InferExplicit<TEntriesModel>, UcMap.Schema<TEntriesModel, false>>[]

Additional schema constraints.

within?: UcPresentations<InferExplicit<TEntriesModel>, UcMap.Schema<TEntriesModel, false>> | readonly UcPresentations<InferExplicit<TEntriesModel>, UcMap.Schema<TEntriesModel, false>>[]

Additional schema instance presentation constraints.

Generated using TypeDoc