Function generateNopeBasicPackage

  • Generates the Default Package, containing all relevant elements of the nope-package. This package is used by the NopePackageLoader to provided a basic package, which could be used for injecting different nope-elements into other elements. (To make use of injection, checkout https://inversify.io/)

    Export

    Returns

    Parameters

    • options: INopeDispatcherOptions

      ommunicationLayer The Layer, which should be used.

    • singleton: boolean = false

      Enables a Single Dispatcher in a Process. Otherwise multiple Dispatchers are used.

    Returns IPackageDescription<{
        communicationLayer: symbol;
        dispatcher: symbol;
        dispatcherOptions: symbol;
        emitter: symbol;
        emitterFactory: symbol;
        observable: symbol;
        observableFactory: symbol;
    }>

Generated using TypeDoc