@types/redux-logger
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -1,2 +0,2 @@ | ||
// Type definitions for redux-logger v3.0.0 | ||
// Type definitions for redux-logger 3.0 | ||
// Project: https://github.com/fcomb/redux-logger | ||
@@ -9,7 +9,11 @@ // Definitions by: Alexander Rusakov <https://github.com/arusakov> | ||
import * as Redux from "redux"; | ||
import * as Redux from 'redux'; | ||
export const logger: Redux.Middleware; | ||
export type LoggerPredicate = (getState: () => any, action: any) => boolean; | ||
export type LoggerPredicate = ( | ||
getState: () => any, | ||
action: any, | ||
logEntry?: LogEntryObject | ||
) => boolean; | ||
@@ -21,30 +25,40 @@ export type StateToString = (state: any) => string; | ||
export interface ColorsObject { | ||
title?: boolean | ActionToString; | ||
prevState?: boolean | StateToString; | ||
action?: boolean | ActionToString; | ||
nextState?: boolean | StateToString; | ||
error?: boolean | ErrorToString; | ||
title?: boolean | ActionToString; | ||
prevState?: boolean | StateToString; | ||
action?: boolean | ActionToString; | ||
nextState?: boolean | StateToString; | ||
error?: boolean | ErrorToString; | ||
} | ||
export interface LevelObject { | ||
prevState?: string | boolean | StateToString; | ||
action?: string | boolean | ActionToString; | ||
nextState?: string | boolean | StateToString; | ||
error?: string | boolean | ErrorToString; | ||
prevState?: string | boolean | StateToString; | ||
action?: string | boolean | ActionToString; | ||
nextState?: string | boolean | StateToString; | ||
error?: string | boolean | ErrorToString; | ||
} | ||
export interface LogEntryObject { | ||
action?: string | boolean | ActionToString; | ||
started?: number; | ||
startedTime?: Date; | ||
took?: number; | ||
error?(error: any): any; | ||
nextState?(state: any): any; | ||
prevState?(state: any): any; | ||
} | ||
export interface ReduxLoggerOptions { | ||
level?: string | ActionToString | LevelObject; | ||
duration?: boolean; | ||
timestamp?: boolean; | ||
colors?: ColorsObject | false; | ||
logger?: any; | ||
logErrors?: boolean; | ||
collapsed?: boolean | LoggerPredicate; | ||
predicate?: LoggerPredicate; | ||
stateTransformer?: (state: any) => any; | ||
actionTransformer?: (action: any) => any; | ||
errorTransformer?: (error: any) => any; | ||
diff?: boolean; | ||
diffPredicate?: LoggerPredicate; | ||
level?: string | ActionToString | LevelObject; | ||
duration?: boolean; | ||
timestamp?: boolean; | ||
colors?: ColorsObject | false; | ||
logger?: any; | ||
logErrors?: boolean; | ||
collapsed?: boolean | LoggerPredicate; | ||
predicate?: LoggerPredicate; | ||
diff?: boolean; | ||
diffPredicate?: LoggerPredicate; | ||
stateTransformer?(state: any): any; | ||
actionTransformer?(action: any): any; | ||
errorTransformer?(error: any): any; | ||
} | ||
@@ -51,0 +65,0 @@ |
{ | ||
"name": "@types/redux-logger", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "TypeScript definitions for redux-logger", | ||
@@ -27,4 +27,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "51795af1c637101e98d09749abe0a4b30aca6e23c2972270a2a5256053c47aff", | ||
"typesPublisherContentHash": "33702d9595b151c2b97c1802c96a5ed931dc58afe4c1363423e07ff7dd4aa052", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 26 Sep 2017 00:11:47 GMT | ||
* Last updated: Fri, 20 Oct 2017 16:02:46 GMT | ||
* Dependencies: redux | ||
@@ -14,0 +14,0 @@ * Global values: ReduxLogger |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4592
55