Options
All
  • Public
  • Public/Protected
  • All
Menu

Generator used to create resources relative to a given base identifier. Note that this is not an AsyncHandler since it returns an AsyncIterable instead of a promise.

Hierarchy

  • ResourcesGenerator

Implemented by

Index

Properties

Properties

generate

generate: (location: ResourceIdentifier, options: Dict<string>) => AsyncIterable<Resource>

Type declaration

    • Generates resources with the given options. The output Map should be sorted so that containers always appear before their contents.

      Parameters

      • location: ResourceIdentifier

        Base identifier.

      • options: Dict<string>

        Options that can be used when generating resources.

      Returns AsyncIterable<Resource>

      A map where the keys are the identifiers and the values the corresponding representations to store.