You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @property {Console | import('abslog').AbstractLogger} [logger] - A logger to use when provided. Can be the console object if console logging is desired but can also be any Log4j compatible logging object as well. Nothing is logged if no logger is provided. (default null)
39
+
* @property {import('abslog').AbstractLoggerOptions} [logger] - A logger to use when provided. Can be the console object if console logging is desired but can also be any Log4j compatible logging object as well. Nothing is logged if no logger is provided. (default null)
44
40
* @property {LayoutContext} [context] - Options to be passed on to the internal `@podium/context` constructor. See that module for details. (default null)
45
41
* @property {LayoutClientOptions} [client] - Options to be passed on to the internal `@podium/client` constructor. See that module for details. (default null)
46
-
* @property {import("@podium/proxy").default.PodiumProxyOptions} [proxy] - Options to be passed on to the internal `@podium/proxy` constructor. See that module for details. (default null)
42
+
* @property {import('@podium/proxy').PodiumProxyOptions} [proxy] - Options to be passed on to the internal `@podium/proxy` constructor. See that module for details. (default null)
47
43
*
48
44
*
49
45
* @typedef {Object} LayoutContext
@@ -116,7 +112,7 @@ export default class PodiumLayout {
116
112
* layout.log.fatal('fatal log to the console')
117
113
* ```
118
114
*
119
-
* @type {import('abslog').AbstractLogger}
115
+
* @type {import('abslog').ValidLogger}
120
116
*/
121
117
log;
122
118
@@ -147,7 +143,7 @@ export default class PodiumLayout {
147
143
* @see https://podium-lib.io/docs/layout/context
148
144
* @see https://podium-lib.io/docs/podlet/context
149
145
*
150
-
* @type {LayoutContext}
146
+
* @type {Context}
151
147
*/
152
148
context;
153
149
@@ -294,14 +290,11 @@ export default class PodiumLayout {
294
290
295
291
// Join metric streams
296
292
this.httpProxy.metrics.pipe(this.metrics);
297
-
// @ts-ignore
298
293
this.context.metrics.pipe(this.metrics);
299
294
this.client.metrics.pipe(this.metrics);
300
295
301
296
// Register proxy endpoints
302
-
// @ts-ignore
303
297
this.client.registry.on('set',(key,item)=>{
304
-
// @ts-ignore
305
298
this.httpProxy.register(key,item.newVal);
306
299
});
307
300
}
@@ -561,7 +554,6 @@ export default class PodiumLayout {
561
554
incoming.css=[...this.cssRoute];
562
555
incoming.js=[...this.jsRoute];
563
556
564
-
// @ts-ignore
565
557
if(context)awaitthis.context.process(incoming);
566
558
if(proxy)awaitthis.httpProxy.process(incoming);
567
559
@@ -587,7 +579,7 @@ export default class PodiumLayout {
0 commit comments