@node-in-layers/core
Version:
The core library for the Node In Layers rapid web development framework.
21 lines (20 loc) • 1.02 kB
TypeScript
import { LogLevelNames, CrossLayerProps, Logger } from '../types.js';
declare const defaultGetFunctionWrapLogLevel: (layerName: string) => LogLevelNames;
/**
* Gets the cross layer props and combines it with information from the logger.
* Does this in a "smart" way.
*
* The result of this can be dumped directly into applyData.
*
* @param {Logger} logger
* @param {CrossLayerProps} crossLayerProps
*/
declare const combineLoggingProps: (logger: Logger, crossLayerProps?: CrossLayerProps) => {
ids: Readonly<Record<string, string>>[];
} & Pick<{
ids?: readonly Readonly<Record<string, string>>[] | undefined;
}, never>;
declare const isCrossLayerLoggingProps: (maybe?: CrossLayerProps) => maybe is CrossLayerProps;
declare const capForLogging: (input: any, maxSize?: number) => any;
declare const extractCrossLayerProps: (args: any[]) => [any[], CrossLayerProps | undefined];
export { defaultGetFunctionWrapLogLevel, combineLoggingProps, isCrossLayerLoggingProps, capForLogging, extractCrossLayerProps, };