/** * @author Martin Karkowski * @email m.karkowski@zema.de * @desc [description] */ import { getSingleton } from "../helpers/singletonMethod"; import { IFunctionOptions, INopeModule } from "../types"; export type IexportFunctionAsNopeServiceParameters = IFunctionOptions; /** * Return the central loger. This logger is a singleton (see {@link getSingleton}) * * @author M.Karkowski * @export * @return {NopeLogger} A Returns the Logger {@link NopeLogger} */ export function getCentralDecoratedContainer(): { methods: Map< string, { uri: string; callback: (...args) => Promise; options: IexportFunctionAsNopeServiceParameters; } >; classes: Map; } { const container = getSingleton("nope.decorated.elements", () => { return { methods: new Map(), classes: new Map(), }; }); return container.instance; }