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

immer-reducer

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

immer-reducer - npm Package Compare versions

Comparing version 0.7.9 to 0.7.10

2

lib/immer-reducer.d.ts

@@ -42,3 +42,3 @@ import { Draft } from "immer";

/** generate reducer function type from the ImmerReducer class */
interface ImmerReducerFunction<T extends ImmerReducerClass> {
export interface ImmerReducerFunction<T extends ImmerReducerClass> {
(state: ImmerReducerState<T> | undefined, action: ReturnTypeUnion<ActionCreators<T>>): ImmerReducerState<T>;

@@ -45,0 +45,0 @@ }

{
"name": "immer-reducer",
"version": "0.7.9",
"version": "0.7.10",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/immer-reducer.js",

# immer-reducer
Create terse type-safe Redux and `useReducer` Hook reducers using [Immer](https://github.com/mweststrate/immer) and Typescript!
Type-safe and terse reducers with Typescript for React Hooks and Redux using [Immer](https://immerjs.github.io/immer/)!
Read an introductory [blog post here](https://medium.com/@esamatti/type-safe-boilerplate-free-redux-906844ec6325).
## 📦 Install

@@ -11,2 +9,4 @@

You can also install [eslint-plugin-immer-reducer](https://github.com/skoshy/eslint-plugin-immer-reducer) to help you avoid errors when writing your reducer.
## 💪 Motivation

@@ -281,2 +281,4 @@

It is also recommended to install the ESLint plugin in the "Install" section
to alert you if you accidentally encounter this issue.

@@ -283,0 +285,0 @@ ## 📚 Examples

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