redux-beacon
Advanced tools
Comparing version 2.0.4 to 2.0.5
import { EventDefinition } from './types'; | ||
declare const createEvents: (eventDefs: EventDefinition<any>[], prevState: any, action: any, nextState: any) => any[]; | ||
declare const createEvents: (eventDefs: EventDefinition<any, { | ||
[key: string]: any; | ||
}, any>[], prevState: any, action: any, nextState: any) => any[]; | ||
export default createEvents; |
@@ -8,5 +8,5 @@ export declare type Target = (events: any[]) => void; | ||
*/ | ||
export declare type EventDefinition<E = any> = (action: { | ||
export declare type EventDefinition<E = any, A = { | ||
[key: string]: any; | ||
}, prevState: any, nextState: any) => E; | ||
}, S = any> = (action: A, prevState: S, nextState: S) => E; | ||
export declare type EventsMapper = (action: { | ||
@@ -13,0 +13,0 @@ [key: string]: any; |
{ | ||
"name": "redux-beacon", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Analytics integration for Redux and ngrx/store", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -9,6 +9,6 @@ export type Target = (events: any[]) => void; | ||
*/ | ||
export type EventDefinition<E = any> = ( | ||
action: { [key: string]: any }, | ||
prevState: any, | ||
nextState: any | ||
export type EventDefinition<E = any, A = { [key: string]: any }, S = any> = ( | ||
action: A, | ||
prevState: S, | ||
nextState: S | ||
) => E; | ||
@@ -15,0 +15,0 @@ |
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
56986
1288