Interface BaseOptions<TEntriesModel, TExtraModel>

Additional options for the map schema.

Type Parameters

  • TEntriesModel extends EntriesModel

    Per-entry model type.

  • TExtraModel extends UcModel | false

    Extra entries model type, or false to prohibit extra entries.

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.
where?: UcConstraints<Infer<TEntriesModel, TExtraModel>, UcMap.Schema<TEntriesModel, TExtraModel>> | readonly UcConstraints<Infer<TEntriesModel, TExtraModel>, UcMap.Schema<TEntriesModel, TExtraModel>>[]

Additional schema constraints.

within?: UcPresentations<Infer<TEntriesModel, TExtraModel>, UcMap.Schema<TEntriesModel, TExtraModel>> | readonly UcPresentations<Infer<TEntriesModel, TExtraModel>, UcMap.Schema<TEntriesModel, TExtraModel>>[]

Additional schema instance presentation constraints.

Generated using TypeDoc