Type Parameters

Hierarchy (view full)

Constructors

Properties

#private: any

Accessors

  • get size(): number
  • Returns number

    the number of (unique) elements in Set.

Methods

  • Parameters

    • callback: ((model) => boolean)
        • (model): boolean
        • Parameters

          Returns boolean

    Returns undefined | ModelStatic

  • Private

    Iterate over Models in an order suitable for e.g. creating tables. Will take foreign key constraints into account so that dependencies are visited before dependents.

    Parameters

    • iterator: ((model) => void)

      method to execute on each model

    • Optional options: {
          reverse?: boolean;
      }
      • Optional reverse?: boolean

    Returns void

    Deprecated

  • Returns an array that lists every model, sorted in order of foreign key references: The first model is a model that is depended upon, the last model is a model that is not depended upon.

    If there is a cyclic dependency, this returns null.

    Returns null | ModelStatic[]

  • Parameters

    Returns boolean

    a boolean indicating whether an element with the specified value exists in the Set or not.