Comparing version 2.2.0-beta.1 to 2.2.0-beta.2
@@ -341,2 +341,3 @@ 'use strict'; | ||
logic.actionKeys[type] = key; | ||
logic.actionTypes[key] = type; | ||
}); | ||
@@ -1123,2 +1124,3 @@ } | ||
actionKeys: {}, | ||
actionTypes: {}, | ||
actions: {}, | ||
@@ -1125,0 +1127,0 @@ defaults: {}, |
@@ -337,2 +337,3 @@ import { createSelector } from 'reselect'; | ||
logic.actionKeys[type] = key; | ||
logic.actionTypes[key] = type; | ||
}); | ||
@@ -1119,2 +1120,3 @@ } | ||
actionKeys: {}, | ||
actionTypes: {}, | ||
actions: {}, | ||
@@ -1121,0 +1123,0 @@ defaults: {}, |
@@ -19,2 +19,3 @@ import { Reducer, Store, Action as ReduxAction } from 'redux'; | ||
actionKeys: Record<string, string>; | ||
actionTypes: Record<string, string>; | ||
actions: any; | ||
@@ -66,3 +67,3 @@ defaults: Record<string, any>; | ||
declare type ListenerDefinitions<LogicType extends Logic> = { | ||
[K in keyof LogicType['actions']]?: ((payload: ReturnType<LogicType['actions'][K]>['payload'], breakpoint: (() => void) | ((ms: number) => Promise<void>), action: ReturnType<LogicType['actions'][K]>, previousState: any) => void | Promise<void>) | (() => void | Promise<void>); | ||
[K in keyof LogicType['actions']]?: ((payload: ReturnType<LogicType['actions'][K]>['payload'], breakpoint: (() => void) & ((ms: number) => Promise<void>), action: ReturnType<LogicType['actions'][K]>, previousState: any) => void | Promise<void>) | (() => void | Promise<void>); | ||
}; | ||
@@ -95,2 +96,3 @@ export declare type LogicInput<LogicType extends Logic = Logic> = { | ||
windowValues?: any; | ||
[key: string]: unknown; | ||
}; | ||
@@ -97,0 +99,0 @@ interface CreateStoreOptions { |
{ | ||
"name": "kea", | ||
"version": "2.2.0-beta.1", | ||
"version": "2.2.0-beta.2", | ||
"description": "Smart front-end architecture", | ||
@@ -5,0 +5,0 @@ "author": "Marius Andra", |
@@ -23,2 +23,3 @@ import { createConnect } from './steps/connect' | ||
actionKeys: {}, | ||
actionTypes: {}, | ||
actions: {}, | ||
@@ -25,0 +26,0 @@ defaults: {}, |
@@ -34,3 +34,4 @@ import { getContext } from '../../context' | ||
logic.actionKeys[type] = key | ||
logic.actionTypes[key] = type | ||
}) | ||
} |
@@ -21,2 +21,3 @@ import { Reducer, Store, Action as ReduxAction } from 'redux' | ||
actionKeys: Record<string, string> | ||
actionTypes: Record<string, string> | ||
actions: any | ||
@@ -111,3 +112,3 @@ defaults: Record<string, any> | ||
payload: ReturnType<LogicType['actions'][K]>['payload'], | ||
breakpoint: (() => void) | ((ms: number) => Promise<void>), | ||
breakpoint: (() => void) & ((ms: number) => Promise<void>), | ||
action: ReturnType<LogicType['actions'][K]>, | ||
@@ -152,2 +153,4 @@ previousState: any, | ||
windowValues?: any | ||
[key: string]: unknown | ||
} | ||
@@ -154,0 +157,0 @@ |
456908
84
13632