Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/core/log/middlewares

Index

References

Re-exports CtorArgs
Re-exports Extended
Re-exports LogEvent
Re-exports LogMiddleware
Re-exports LogMiddlewares
Re-exports LogMiddlewaresName
Re-exports LogMiddlewaresTuple
Re-exports NextCallback
Renames and re-exports default

Variables

default: { configurable: (...args: []) => ConfigurableMiddleware; errorsDeduplicator: (...args: []) => ErrorsDeduplicatorMiddleware; extractor: (...args: ErrorDetailsExtractor<Error>[]) => ExtractorMiddleware } = ...

Type declaration

Functions

  • creatorFor<T, A>(Ctor: new (...args: A) => T): (...args: A) => T
  • Returns a function that creates a middleware of the specified class

    Type parameters

    Parameters

    • Ctor: new (...args: A) => T

      constructor or just a class

        • new (...args: A): T
        • Parameters

          • Rest ...args: A

          Returns T

    Returns (...args: A) => T

      • (...args: A): T
      • Returns a function that creates a middleware of the specified class

        Parameters

        • Rest ...args: A

        Returns T