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

redux-fluent

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-fluent - npm Package Compare versions

Comparing version 0.4.0 to 0.5.2

4

build/redux-fluent.development.js
/**!
* @name redux-fluent
* @version 0.4.0
* @version 0.5.2
* @author Code-Y (https://github.com/Code-Y)

@@ -11,3 +11,3 @@ * @description Tiny and eloquent way to manage a redux-like state manager

* @build-info development - Tue Dec 26 2017 12:42:41 GMT+0000 (UTC)
* @build-info development - Tue Dec 26 2017 13:38:29 GMT+0000 (UTC)
* @homepage https://github.com/Code-Y/redux-fluent#readme

@@ -14,0 +14,0 @@ * @keywords [ redux, ngrx-store, typescript, state-management ]

/**!
* @name redux-fluent
* @version 0.4.0
* @version 0.5.2
* @author Code-Y (https://github.com/Code-Y)

@@ -11,3 +11,3 @@ * @description Tiny and eloquent way to manage a redux-like state manager

* @build-info production - Tue Dec 26 2017 12:42:41 GMT+0000 (UTC)
* @build-info production - Tue Dec 26 2017 13:38:29 GMT+0000 (UTC)
* @homepage https://github.com/Code-Y/redux-fluent#readme

@@ -14,0 +14,0 @@ * @keywords [ redux, ngrx-store, typescript, state-management ]

@@ -1,2 +0,2 @@

declare module Types {
declare namespace /* Interfaces */ I {
export interface Action {

@@ -9,11 +9,11 @@ type: string;

export interface ActionError<E extends Error, M> extends Action {
type: string;
export interface ActionError<T extends string , Error, M> extends Action {
type: T;
error: true;
payload: E;
payload: Error;
meta: M;
}
export interface ActionSuccess<P extends { [key: string] : any } | null, M> extends Action {
type: string;
export interface ActionSuccess<T extends string, P, M> extends Action {
type: T;
error: false;

@@ -45,3 +45,3 @@ payload: P;

export interface Do<S, C> {
<E extends Error, M>(reducer: (state: S, action: ActionError<E, M>, config: C) => S): {
<E extends Error, M>(reducer: (state: S, action: ActionError<string, E, M>, config: C) => S): {
default: Default<S, C>;

@@ -51,3 +51,3 @@ case: Case<S, C>;

};
<E extends Error>(reducer: (state: S, action: ActionError<E, null>, config: C) => S): {
<E extends Error>(reducer: (state: S, action: ActionError<string, E, null>, config: C) => S): {
default: Default<S, C>;

@@ -57,3 +57,3 @@ case: Case<S, C>;

};
<P, M>(reducer: (state: S, action: ActionSuccess<P, M>, config: C) => S): {
<P, M>(reducer: (state: S, action: ActionSuccess<string, P, M>, config: C) => S): {
default: Default<S, C>;

@@ -63,3 +63,3 @@ case: Case<S, C>;

};
<P>(reducer: (state: S, action: ActionSuccess<P, null>, config: C) => S): {
<P>(reducer: (state: S, action: ActionSuccess<string, P, null>, config: C) => S): {
default: Default<S, C>;

@@ -76,13 +76,13 @@ case: Case<S, C>;

interface ActionCreator<P, M> {
interface ActionCreator<P, M, T extends string> {
readonly type: string;
toString(): string;
<EM extends M>(payload: Error, meta: EM): ActionError<Error, EM>;
(payload: Error): ActionError<Error, null>;
<E extends Error, EM extends M>(payload: E, meta: EM): ActionError<T, E, EM>;
<E extends Error>(payload: E): ActionError<T, E, null>;
<PS extends P, MS extends M>(payload: PS, meta: MS): ActionSuccess<PS, MS>;
<PS extends P>(payload: PS): ActionSuccess<PS, null>;
<MS extends M>(payload: null | undefined, meta: MS): ActionSuccess<null, MS>;
(): ActionSuccess<null, null>;
<PS extends P, MS extends M>(payload: PS, meta: MS): ActionSuccess<T, PS, MS>;
<PS extends P>(payload: PS): ActionSuccess<T, PS, null>;
<MS extends M>(payload: null | undefined, meta: MS): ActionSuccess<T, null, MS>;
(): ActionSuccess<T, null, null>;
}

@@ -95,8 +95,8 @@ }

>(domain: string): {
default: Types.Default<S, C>;
case: Types.Case<S, C>;
default: I.Default<S, C>;
case: I.Case<S, C>;
config(config: C): {
default: Types.Default<S, C>;
case: Types.Case<S, C>
default: I.Default<S, C>;
case: I.Case<S, C>
}

@@ -107,3 +107,4 @@ };

P extends { [key: string]: any } = { [key: string]: any },
M extends { [key: string]: any } = { [key: string]: any }
>(type: string): Types.ActionCreator<P, M>;
M extends { [key: string]: any } = { [key: string]: any },
T extends string = string
>(type: T): I.ActionCreator<P, M, T>;
{
"name": "redux-fluent",
"license": "ISC",
"version": "0.4.0",
"version": "0.5.2",
"homepage": "https://github.com/Code-Y/redux-fluent#readme",

@@ -6,0 +6,0 @@ "description": "Tiny and eloquent way to manage a redux-like state manager",

Sorry, the diff of this file is not supported yet

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