UNPKG

nope-js-node

Version:

NoPE Runtime for Nodejs. For Browser-Support please use nope-browser

25 lines (24 loc) 1.17 kB
/** * @author Martin Karkowski * @email m.karkowski@zema.de * @create date 2021-03-23 07:30:19 * @modify date 2022-01-03 17:33:58 * @desc [description] */ import { ValidLoggerDefinition } from "../logger/getLogger"; import { ICommunicationBridge } from "../types/nope/nopeCommunication.interface"; import { validLayerOrMirror } from "./addLayer.nodejs"; /** * Function, that will create a Bridge, based on the provided function. * Based on the parameter "layer", a corresponding layer or mirror will * be added to the bridge. You can provide custom parameters using the * parameter "parameter". This will receive either the uri or ports. * Additionally you are able to assign a log-level to the bridge. * * @export * @param {validLayerOrMirror} layer the layer to add * @param {(number | string)} [parameter=null] the parameter required for the additonal layer / mirror * @param {LoggerLevel} [logger=false] the level of the debugger * @return {ICommunicationBridge} A bridge */ export declare function getLayer(layer: validLayerOrMirror, parameter?: number | string, logger?: ValidLoggerDefinition): ICommunicationBridge;