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

@aptuitiv/use-simple-reducer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aptuitiv/use-simple-reducer - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

dist/use-simple-reducer.d.ts

@@ -8,3 +8,3 @@ import { useState as reactUseState } from 'react';

}
declare type FunctionForFirstParamType<ParamType> = (arg0: ParamType) => void;
declare type FunctionForFirstParamType<ParamType> = (arg0?: ParamType) => void;
declare type FunctionForInitialStateType<StateType> = StateType extends PromiseLike<infer IS> ? IS | null : StateType;

@@ -11,0 +11,0 @@ declare type Nullable<T> = T | null;

{
"name": "@aptuitiv/use-simple-reducer",
"version": "0.0.7",
"version": "0.0.8",
"description": "A reducer to handle async actions",

@@ -5,0 +5,0 @@ "main": "./dist/use-simple-reducer.umd.js",

@@ -13,3 +13,3 @@ import { useState as reactUseState, useRef, useEffect } from 'react'

// Given a parameter type, makes a first argument with that type
type FunctionForFirstParamType<ParamType> = (arg0: ParamType) => void
type FunctionForFirstParamType<ParamType> = (arg0?: ParamType) => void
// Give an initial state, if it is a promise it will return the non error return type of it. Otherwise, it returns the initial state

@@ -16,0 +16,0 @@ type FunctionForInitialStateType<StateType> = StateType extends PromiseLike<infer IS> ? IS | null : StateType

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