@aptuitiv/use-simple-reducer
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46834