i2 Connect SDK
Search results for

    Show/hide table of contents

    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.

    In this article
    • services.ISeedConstraints.typeConstraints property
    • Remarks
    Back to top © N. Harris Computer Corporation (2022)