Class NopeGenericWrapper

A Generic Wrapper

Author

M.Karkowski

Export

Hierarchy

Constructors

Properties

_markedElements: {
    accessor: string;
    options: IEventOptions | IServiceOptions<any>;
    type: "event" | "method" | "prop";
}[]

Internal Element, which is used to store elements, that should be added automaticallay.

Memberof

INopeModule

author: IAuthor

A Description of the Author. Use to Mail etc.

Memberof

BaseModule

description: string

A Description of the Module. This is used to Describe roughly what the module is capable of doing.

Memberof

BaseModule

dynamicInstanceEvents: {
    [index: string]: INopeEventEmitter<any>;
} = {}

Type declaration

dynamicInstanceMethods: {
    [index: string]: (<T>(...args) => INopePromise<T>);
} = {}

Type declaration

dynamicInstanceMethodsWithOptions: {
    [index: string]: (<T>(options, ...args) => INopePromise<T>);
} = {}

Type declaration

dynamicInstanceProperties: {
    [index: string]: INopeObservable<any>;
} = {}

Type declaration

identifier: string

The Identifier of the Module.

Memberof

BaseModule

uiLinks: {
    description: string;
    link: string;
    name: string;
}[]
version: IVersion

Description of the provided Version of the Module.

Memberof

BaseModule

Accessors

Methods

  • Function, used to add the Attributes based on the Description.

    Memberof

    NopeGenericModule

    Parameters

    Returns Promise<void>

  • Helper Function to extract the used identifiert of Property

    Returns

    {string}

    Memberof

    NopeBaseModule

    Parameters

    • prop_event_or_func: INopeObservable<any, any, any, IEventAdditionalData> | ((...args) => Promise<any>)

      The Property or the Function to receive the Name.

    • type: "topicToPublish" | "topicToSubscribe" = null

    Returns string

  • Helper Function to register an Event(Emitter) (a Property.)

    Returns

    Memberof

    NopeBaseModule

    Type Parameters

    • T

      Type of the Event(Emitter)

    • S = T

      Setter Type of the Event(Emitter)

    • G = T

      Getter Type of the Event(Emitter)

    Parameters

    • name: string

      Name, which should be used to register the element. The Name will ALLWAYS (automatically) be assembled using the modules identifier an then the name.

    • emitter: INopeObservable<T, S, G, IEventAdditionalData>

      The Event(Emitter) representing the Property

    • options: IEventOptions

      The Options used to define the registration.

    Returns Promise<void>

  • Function used to register a Method. This Method will be available in the shared network.

    Returns

    Memberof

    NopeBaseModule

    Parameters

    • name: string

      Name of the Method, which is used during registration at the dispatcher

    • func: ((...args) => Promise<any>)

      The function itself. It must be async.

        • (...args): Promise<any>
        • Parameters

          • Rest ...args: any[]

          Returns Promise<any>

    • options: IServiceOptions<any>

      The Options, used for registering.

    Returns Promise<void>

  • Helper Function to register an Observable (a Property.)

    Returns

    Memberof

    NopeBaseModule

    Type Parameters

    • T

      Type of the Property

    • S = T

      Setter Type of the Property

    • G = T

      Getter Type of the Property

    Parameters

    • name: string

      Name, which should be used to register the element. The Name will ALLWAYS (automatically) be assembled using the modules identifier an then the name.

    • observable: INopeObservable<T, S, G, IEventAdditionalData>

      The Observable representing the Property

    • options: IEventOptions

      The Options used to define the registration.

    Returns Promise<void>

  • Helper Function to unregister an Eventbased Property

    Returns

    Memberof

    NopeBaseModule

    Parameters

    • name: string

      Name of the Property, that has been used to register.

    Returns Promise<void>

Generated using TypeDoc