New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clean-redux

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-redux - npm Package Compare versions

Comparing version 0.1.1 to 0.2.1

src/usecasesToPureFunctions.ts

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## **0.2.0** (2021-12-20)
- Add annotation
- Add pure function
### **0.1.1** (2021-12-20)

@@ -2,0 +7,0 @@

6

package.json
{
"name": "clean-redux",
"version": "0.1.1",
"version": "0.2.1",
"description": "Toolkit for implementing clean architecture using Redux",

@@ -27,2 +27,3 @@ "repository": {

"src/usecasesToAutoDispatchThunks.ts",
"src/usecasesToPureFunctions.ts",
"src/usecasesToReducer.ts",

@@ -36,2 +37,5 @@ "src/usecasesToSelectors.ts",

"usecasesToAutoDispatchThunks.js.map",
"usecasesToPureFunctions.d.ts",
"usecasesToPureFunctions.js",
"usecasesToPureFunctions.js.map",
"usecasesToReducer.d.ts",

@@ -38,0 +42,0 @@ "usecasesToReducer.js",

@@ -11,2 +11,3 @@ import "minimal-polyfills/Object.fromEntries";

/** NOTE: Always returns the same ref for a given dispatch, no need to useMemo */
export function thunkToAutoDispatchThunk<

@@ -13,0 +14,0 @@ Thunk extends (params: any) => ThunkAction<any, any, any, AnyAction>,

@@ -5,2 +5,3 @@ import "minimal-polyfills/Object.fromEntries";

export declare type ThunkToAutoDispatchThunk<Thunk extends (params: any) => ThunkAction<any, any, any, any>> = (params: Param0<Thunk>) => ReturnType<Thunk> extends ThunkAction<infer R, any, any, any> ? R : never;
/** NOTE: Always returns the same ref for a given dispatch, no need to useMemo */
export declare function thunkToAutoDispatchThunk<Thunk extends (params: any) => ThunkAction<any, any, any, AnyAction>>(params: {

@@ -7,0 +8,0 @@ thunk: Thunk;

@@ -7,2 +7,3 @@ "use strict";

var objectKeys_1 = require("tsafe/objectKeys");
/** NOTE: Always returns the same ref for a given dispatch, no need to useMemo */
function thunkToAutoDispatchThunk(params) {

@@ -9,0 +10,0 @@ var dispatch = params.dispatch, thunk = params.thunk;

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