@types/redux-logger

  • Version 3.0.13
  • Published
  • 6.89 kB
  • 1 dependency
  • MIT license

Install

npm i @types/redux-logger
yarn add @types/redux-logger
pnpm add @types/redux-logger

Overview

TypeScript definitions for redux-logger

Index

Variables

variable logger

const logger: Redux.Middleware;

    Functions

    function createLogger

    createLogger: (options?: ReduxLoggerOptions) => Redux.Middleware;

      Interfaces

      interface ColorsObject

      interface ColorsObject {}

        property action

        action?: boolean | ActionToString | undefined;

          property error

          error?: boolean | ErrorToString | undefined;

            property nextState

            nextState?: boolean | StateToString | undefined;

              property prevState

              prevState?: boolean | StateToString | undefined;

                property title

                title?: boolean | ActionToString | undefined;

                  interface LevelObject

                  interface LevelObject {}

                    property action

                    action?: string | boolean | ActionToString | undefined;

                      property error

                      error?: string | boolean | ErrorToString | undefined;

                        property nextState

                        nextState?: string | boolean | StateToString | undefined;

                          property prevState

                          prevState?: string | boolean | StateToString | undefined;

                            interface LogEntryObject

                            interface LogEntryObject {}

                              property action

                              action?: string | boolean | ActionToString | undefined;

                                property started

                                started?: number | undefined;

                                  property startedTime

                                  startedTime?: Date | undefined;

                                    property took

                                    took?: number | undefined;

                                      method error

                                      error: (error: any) => any;

                                        method nextState

                                        nextState: (state: any) => any;

                                          method prevState

                                          prevState: (state: any) => any;

                                            interface ReduxLoggerOptions

                                            interface ReduxLoggerOptions {}

                                              property collapsed

                                              collapsed?: boolean | LoggerPredicate | undefined;

                                                property colors

                                                colors?: ColorsObject | false | undefined;

                                                  property diff

                                                  diff?: boolean | undefined;

                                                    property diffPredicate

                                                    diffPredicate?: LoggerPredicate | undefined;

                                                      property duration

                                                      duration?: boolean | undefined;

                                                        property level

                                                        level?: string | ActionToString | LevelObject | undefined;

                                                          property logErrors

                                                          logErrors?: boolean | undefined;

                                                            property logger

                                                            logger?: any;

                                                              property predicate

                                                              predicate?: LoggerPredicate | undefined;

                                                                property timestamp

                                                                timestamp?: boolean | undefined;

                                                                  method actionTransformer

                                                                  actionTransformer: (action: any) => any;

                                                                    method errorTransformer

                                                                    errorTransformer: (error: any) => any;

                                                                      method stateTransformer

                                                                      stateTransformer: (state: any) => any;

                                                                        method titleFormatter

                                                                        titleFormatter: (
                                                                        formattedAction: any,
                                                                        formattedTime: string,
                                                                        took: number
                                                                        ) => string;

                                                                          Type Aliases

                                                                          type ActionToString

                                                                          type ActionToString = (action: any) => string;

                                                                            type ErrorToString

                                                                            type ErrorToString = (error: any, prevState: any) => string;

                                                                              type LoggerPredicate

                                                                              type LoggerPredicate = (
                                                                              getState: () => any,
                                                                              action: any,
                                                                              logEntry?: LogEntryObject
                                                                              ) => boolean;

                                                                                type StateToString

                                                                                type StateToString = (state: any) => string;

                                                                                  Package Files (1)

                                                                                  Dependencies (1)

                                                                                  Dev Dependencies (0)

                                                                                  No dev dependencies.

                                                                                  Peer Dependencies (0)

                                                                                  No peer dependencies.

                                                                                  Badge

                                                                                  To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                                                  You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/redux-logger.

                                                                                  • Markdown
                                                                                    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/redux-logger)
                                                                                  • HTML
                                                                                    <a href="https://www.jsdocs.io/package/@types/redux-logger"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>