Socket
Socket
Sign inDemoInstall

redux-fluent

Package Overview
Dependencies
0
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.16.2 to 0.17.1

4

build/redux-fluent.development.js
/**!
* @build-info development - Thu Dec 28 2017 13:02:35 GMT+0000 (UTC)
* @build-info development - Fri Dec 29 2017 10:30:00 GMT+0000 (UTC)
* @name redux-fluent
* @version 0.16.2
* @version 0.17.1
* @author Code-Y (https://github.com/Code-Y)

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

/**!
* @build-info production - Thu Dec 28 2017 13:02:35 GMT+0000 (UTC)
* @build-info production - Fri Dec 29 2017 10:30:00 GMT+0000 (UTC)
* @name redux-fluent
* @version 0.16.2
* @version 0.17.1
* @author Code-Y (https://github.com/Code-Y)

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

declare module 'redux-fluent' {
export function createReducer<
S extends { [key: string]: any },
C extends { [key: string]: any } = { [key: string]: any },
S extends object = object,
C extends object = object,
D extends string = string

@@ -17,4 +17,4 @@ >(domain: D): {

export function createAction<
P extends { [key: string]: any } = { [key: string]: any },
M extends { [key: string]: any } = { [key: string]: any },
P extends object = object,
M extends object = object,
T extends string = string

@@ -28,4 +28,4 @@ >(type: T): I.ActionCreator<P, M, T>;

error: boolean;
payload: { [key: string]: any } | null;
meta: { [key: string]: any } | null;
payload: object | null;
meta: object | null;
}

@@ -36,3 +36,3 @@

E extends Error,
M
M extends object | null
> extends Action {

@@ -47,4 +47,4 @@ type: T;

T extends string,
P extends { [key: string]: any } | null,
M
P extends object | null,
M extends object | null
> extends Action {

@@ -72,5 +72,13 @@ type: T;

interface Do<D, S, C> {
<A extends Action>(reducer: (state: S, action: A, config: C) => S): {
default: Default<D, S, C>;
case: Case<D, S, C>;
do: Do<D, S, C>;
};
}
interface Default<D, S, C> {
(state?: S): {
domain: D;
readonly domain: D;
toString(): D;

@@ -88,11 +96,7 @@

interface Do<D, S, C> {
<A extends Action>(reducer: (state: S, action: A, config: C) => S): {
default: Default<D, S, C>;
case: Case<D, S, C>;
do: Do<D, S, C>;
};
}
interface ActionCreator<P, M, T extends string> {
interface ActionCreator<
P extends object = object,
M extends object = object,
T extends string = string
> {
readonly type: string;

@@ -99,0 +103,0 @@ toString(): string;

{
"name": "redux-fluent",
"license": "MIT",
"version": "0.16.2",
"version": "0.17.1",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc