typesafe-actions
Advanced tools
Comparing version 5.0.0-1 to 5.0.0-3
@@ -5,3 +5,2 @@ import { Reducer, Action, Types } from './type-helpers'; | ||
handleAction: HandleActionChainApi<TState, TOutputAction, TRootAction>; | ||
handleType: HandleTypeChainApi<TState, TOutputAction, TRootAction>; | ||
} : Reducer<TState, TRootAction> & { | ||
@@ -12,3 +11,2 @@ handlers: Record<TRootAction['type'], (state: TState, action: TRootAction) => TState>; | ||
handlers: Record<Exclude<TRootAction, TOutputAction>['type'], (state: TState, action: TRootAction) => TState>; | ||
handleAction: HandleActionChainApi<TState, TOutputAction, TRootAction>; | ||
handleType: HandleTypeChainApi<TState, TOutputAction, TRootAction>; | ||
@@ -27,5 +25,5 @@ } : Reducer<TState, TRootAction> & { | ||
handlers: InitialHandler<TState, any>; | ||
readonly handleAction: [unknown] extends [TRootAction] ? any : HandleActionChainApi<TState, TRootAction, TRootAction>; | ||
readonly handleType: [unknown] extends [TRootAction] ? any : HandleTypeChainApi<TState, TRootAction, TRootAction>; | ||
handleAction: [unknown] extends [TRootAction] ? any : HandleActionChainApi<TState, TRootAction, TRootAction>; | ||
handleType: [unknown] extends [TRootAction] ? any : HandleTypeChainApi<TState, TRootAction, TRootAction>; | ||
}>; | ||
export {}; |
{ | ||
"name": "typesafe-actions", | ||
"version": "5.0.0-1", | ||
"version": "5.0.0-3", | ||
"description": "Typesafe Action Creators for Redux / Flux Architectures (in TypeScript)", | ||
@@ -5,0 +5,0 @@ "author": "Piotr Witek <piotrek.witek@gmail.com> (http://piotrwitek.github.io)", |
111675
880