Home > @i2analyze/i2connect > services > ISeedConstraints > typeConstraints
services.ISeedConstraints.typeConstraints property
Gets the constraints on the item types that seeds can have.
Signature:
readonly typeConstraints?: 'anyEntities' | 'anyLinks' | (TItemType | IItemTypeConstraint<TItemType>)[];
Returns: 'anyEntities' | 'anyLinks' | (TItemType | IItemTypeConstraint<TItemType>)[]
Introduced: API version 1.0
Remarks
If you provide no value for typeConstraints
, then seeds can have any type. Otherwise, 'anyEntities'
means that all seeds must be entity records (of any type), while 'anyLinks'
means that all seeds must be link records (of any type).
The last option allows you to specify exactly which types seed records can have, and to provide additional constraints if necessary.