Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/redux-logger

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/redux-logger - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

44

redux-logger/index.d.ts

@@ -24,21 +24,21 @@ // Type definitions for redux-logger 3.0

export interface ColorsObject {
title?: boolean | ActionToString;
prevState?: boolean | StateToString;
action?: boolean | ActionToString;
nextState?: boolean | StateToString;
error?: boolean | ErrorToString;
title?: boolean | ActionToString | undefined;
prevState?: boolean | StateToString | undefined;
action?: boolean | ActionToString | undefined;
nextState?: boolean | StateToString | undefined;
error?: boolean | ErrorToString | undefined;
}
export interface LevelObject {
prevState?: string | boolean | StateToString;
action?: string | boolean | ActionToString;
nextState?: string | boolean | StateToString;
error?: string | boolean | ErrorToString;
prevState?: string | boolean | StateToString | undefined;
action?: string | boolean | ActionToString | undefined;
nextState?: string | boolean | StateToString | undefined;
error?: string | boolean | ErrorToString | undefined;
}
export interface LogEntryObject {
action?: string | boolean | ActionToString;
started?: number;
startedTime?: Date;
took?: number;
action?: string | boolean | ActionToString | undefined;
started?: number | undefined;
startedTime?: Date | undefined;
took?: number | undefined;
error?(error: any): any;

@@ -50,13 +50,13 @@ nextState?(state: any): any;

export interface ReduxLoggerOptions {
level?: string | ActionToString | LevelObject;
duration?: boolean;
timestamp?: boolean;
colors?: ColorsObject | false;
level?: string | ActionToString | LevelObject | undefined;
duration?: boolean | undefined;
timestamp?: boolean | undefined;
colors?: ColorsObject | false | undefined;
titleFormatter?(formattedAction: any, formattedTime: string, took: number): string;
logger?: any;
logErrors?: boolean;
collapsed?: boolean | LoggerPredicate;
predicate?: LoggerPredicate;
diff?: boolean;
diffPredicate?: LoggerPredicate;
logErrors?: boolean | undefined;
collapsed?: boolean | LoggerPredicate | undefined;
predicate?: LoggerPredicate | undefined;
diff?: boolean | undefined;
diffPredicate?: LoggerPredicate | undefined;
stateTransformer?(state: any): any;

@@ -63,0 +63,0 @@ actionTransformer?(action: any): any;

{
"name": "@types/redux-logger",
"version": "3.0.8",
"version": "3.0.9",
"description": "TypeScript definitions for redux-logger",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-logger",
"license": "MIT",

@@ -29,4 +30,4 @@ "contributors": [

},
"typesPublisherContentHash": "149a86490b2255d60dd90de99b7c04196715032267bdbac229dceddedd771fc2",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "1ed83ad31e56bc3097aac55ed760c376d30661922ad550ba854fa796685e87f0",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,76 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-logger.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-logger/index.d.ts)
````ts
// Type definitions for redux-logger 3.0
// Project: https://github.com/theaqua/redux-logger
// Definitions by: Alexander Rusakov <https://github.com/arusakov>
// Kevin Groat <https://github.com/kgroat>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace ReduxLogger;
import * as Redux from 'redux';
export const logger: Redux.Middleware;
export type LoggerPredicate = (
getState: () => any,
action: any,
logEntry?: LogEntryObject
) => boolean;
export type StateToString = (state: any) => string;
export type ActionToString = (action: any) => string;
export type ErrorToString = (error: any, prevState: any) => string;
export interface ColorsObject {
title?: boolean | ActionToString | undefined;
prevState?: boolean | StateToString | undefined;
action?: boolean | ActionToString | undefined;
nextState?: boolean | StateToString | undefined;
error?: boolean | ErrorToString | undefined;
}
export interface LevelObject {
prevState?: string | boolean | StateToString | undefined;
action?: string | boolean | ActionToString | undefined;
nextState?: string | boolean | StateToString | undefined;
error?: string | boolean | ErrorToString | undefined;
}
export interface LogEntryObject {
action?: string | boolean | ActionToString | undefined;
started?: number | undefined;
startedTime?: Date | undefined;
took?: number | undefined;
error?(error: any): any;
nextState?(state: any): any;
prevState?(state: any): any;
}
export interface ReduxLoggerOptions {
level?: string | ActionToString | LevelObject | undefined;
duration?: boolean | undefined;
timestamp?: boolean | undefined;
colors?: ColorsObject | false | undefined;
titleFormatter?(formattedAction: any, formattedTime: string, took: number): string;
logger?: any;
logErrors?: boolean | undefined;
collapsed?: boolean | LoggerPredicate | undefined;
predicate?: LoggerPredicate | undefined;
diff?: boolean | undefined;
diffPredicate?: LoggerPredicate | undefined;
stateTransformer?(state: any): any;
actionTransformer?(action: any): any;
errorTransformer?(error: any): any;
}
export function createLogger(options?: ReduxLoggerOptions): Redux.Middleware;
export default logger;
````
### Additional Details
* Last updated: Fri, 29 May 2020 22:30:45 GMT
* Last updated: Wed, 07 Jul 2021 18:31:54 GMT
* Dependencies: [@types/redux](https://npmjs.com/package/@types/redux)

@@ -14,0 +85,0 @@ * Global values: `ReduxLogger`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc