Options
All
  • Public
  • Public/Protected
  • All
Menu

Utility class for querying {@see IDerivativeManifest}.

Hierarchy

  • ManifestHelper

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected manifest

Methods

search

  • search(query: { guid?: string; role?: string; type?: string }): DerivativeChild[]
  • Finds manifest derivatives with matching 'guid', 'type', or 'role' properties.

    Parameters

    • query: { guid?: string; role?: string; type?: string }

      Dictionary of the requested properties and values.

      • Optional guid?: string
      • Optional role?: string
      • Optional type?: string

    Returns DerivativeChild[]

    Matching derivatives.

traverse

  • traverse(callback: (child: DerivativeChild) => boolean): void
  • Traverses all derivatives, executing the input callback for each one.

    Parameters

    • callback: (child: DerivativeChild) => boolean

      Function to be called for each derivative, returning a bool indicating whether the traversal should recurse deeper in the manifest hierarchy.

        • (child: DerivativeChild): boolean
        • Parameters

          • child: DerivativeChild

          Returns boolean

    Returns void

Generated using TypeDoc